Skip to content

Commit bea2874

Browse files
authored
Configure npm publish workflow with provenance support
Updated publish workflow to include provenance and removed npm whoami step.
1 parent 212c2e2 commit bea2874

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: read
99
packages: write
10+
id-token: write # for provenance and publish access
1011

1112
jobs:
1213
publish-npm:
@@ -22,6 +23,4 @@ jobs:
2223
- run: npm version ${TAG_NAME} --git-tag-version=false --allow-same-version
2324
env:
2425
TAG_NAME: ${{ github.event.release.tag_name }}
25-
- run: npm whoami; npm publish --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
26+
- run: npm publish --provenance

0 commit comments

Comments
 (0)