Skip to content

Commit 25b8094

Browse files
committed
Publish with provenance
1 parent 9d11c4e commit 25b8094

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
id-token: write # for provenance and publish access
10+
711
jobs:
812
publish-npm:
913
runs-on: ubuntu-latest
@@ -21,6 +25,6 @@ jobs:
2125
- run: npm version ${TAG_NAME} --git-tag-version=false
2226
env:
2327
TAG_NAME: ${{ github.event.release.tag_name }}
24-
- run: npm whoami; npm publish
28+
- run: npm publish --provenance
2529
env:
2630
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)