Skip to content

Commit c03d206

Browse files
authored
Update publish.yml to add id-token permission
1 parent 4653aa5 commit c03d206

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish.yml

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

77
permissions:
88
contents: read
9+
id-token: write
910

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

0 commit comments

Comments
 (0)