Skip to content

Commit af7b57c

Browse files
authored
chore: Update publish.yml to modify permissions and npm command
Add permission for id-token and remove NODE_AUTH_TOKEN from npm publish step.
1 parent 7a1b282 commit af7b57c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- "v*.*.*"
66

77
permissions:
8+
id-token: write # Required for OIDC
89
contents: read
910

1011
jobs:
@@ -27,5 +28,3 @@ jobs:
2728
npm run build
2829
2930
- run: npm publish --access public
30-
env:
31-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)