Merge pull request #18352 from wojtekmaj/provenance

Generate provenance statements on npm publish
This commit is contained in:
Tim van der Meij 2024-07-01 17:42:16 +02:00 committed by GitHub
commit 7114796430
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@ on:
types: [published] types: [published]
permissions: permissions:
contents: read contents: read
id-token: write
jobs: jobs:
publish: publish:
@ -33,6 +34,6 @@ jobs:
run: npx gulp dist run: npx gulp dist
- name: Publish the `pdfjs-dist` library to NPM - name: Publish the `pdfjs-dist` library to NPM
run: npm publish ./build/dist run: npm publish ./build/dist --provenance
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}