ci: adapt workflows for Forgejo Actions (update actions versions, add Chrome install)
Some checks failed
Publish to NPM / build (push) Failing after 21s

This commit is contained in:
Lorenzo Iovino 2026-02-07 17:48:24 +01:00
parent b8de85a4f9
commit 553755e67e
2 changed files with 31 additions and 15 deletions

View file

@ -3,20 +3,25 @@ name: Publish to NPM
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node-version: [21.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run pack
- run: cp README.md ./dist/lib/README.md
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: './dist/lib/package.json'
- name: Publish to NPM
run: npm publish ./dist/lib/ --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}