Skip to content

Commit 150c399

Browse files
authored
Merge pull request #180 from github/bteng22/npm-publish
Configure npm publish workflow with provenance support
2 parents 212c2e2 + ad77067 commit 150c399

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
permissions:
88
contents: read
9-
packages: write
9+
id-token: write # for provenance and publish access
1010

1111
jobs:
1212
publish-npm:
@@ -22,6 +22,4 @@ jobs:
2222
- run: npm version ${TAG_NAME} --git-tag-version=false --allow-same-version
2323
env:
2424
TAG_NAME: ${{ github.event.release.tag_name }}
25-
- run: npm whoami; npm publish --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
25+
- run: npm publish --access public --provenance

0 commit comments

Comments
 (0)