chore: generate provenance statements for nightly npm package

See Also: https://docs.npmjs.com/generating-provenance-statements#about-npm-provenance
This commit is contained in:
rwv 2024-08-01 16:38:11 +08:00 committed by Nathan Adams
parent 6d2644ed48
commit 1098a7da1e
1 changed files with 4 additions and 1 deletions

View File

@ -309,6 +309,9 @@ jobs:
needs: create-nightly-release
if: needs.create-nightly-release.outputs.is_active == 'true'
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
strategy:
matrix:
demo: [false, true]
@ -393,7 +396,7 @@ jobs:
- name: Publish npm package
if: ${{ !matrix.demo }}
# npm scoped packages are private by default, explicitly make public
run: npm publish --access public
run: npm publish --access public --provenance
continue-on-error: true
working-directory: web/packages/selfhosted/dist
env: