Use OIDC trusted publishing in the GitHub Actions release workflow

This commit updates the release pipeline to use OIDC trusted publishing
now that we have configured it between GitHub Actions and NPM. This
solution allows us to remove the token variable (because there is no
longer a fixed token) and provenance flag (because provenance
attestations are generated by default with this approach); refer to
https://docs.npmjs.com/trusted-publishers for more information.
This commit is contained in:
Tim van der Meij 2025-11-28 21:01:13 +01:00
parent ec5330f78c
commit 8eb747663a
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -34,6 +34,4 @@ jobs:
run: npx gulp dist
- name: Publish the `pdfjs-dist` library to NPM
run: npm publish ./build/dist --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish ./build/dist