chore: Fix publish command (#11379)

This commit is contained in:
Michael Bromley 2025-04-03 11:18:32 +02:00 committed by GitHub
parent 6c5668bd82
commit cebd63b1f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ name: Publish Package to npmjs
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
@ -17,7 +18,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run package
- run: cd build/package
- run: npm publish --provenance --access public
- run: |
cd build/package
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}