Skip to content

Commit 8eb7476

Browse files
committed
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.
1 parent ec5330f commit 8eb7476

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/publish_release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,4 @@ jobs:
3434
run: npx gulp dist
3535

3636
- name: Publish the `pdfjs-dist` library to NPM
37-
run: npm publish ./build/dist --provenance
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: npm publish ./build/dist

0 commit comments

Comments
 (0)