Skip to content

Commit 6ae51d1

Browse files
authored
chore: Remove NODE_AUTH_TOKEN from publish workflow (#345)
Removed NODE_AUTH_TOKEN environment variable from npm publish step. I've set up trusted publishing so no need for the token. See https://docs.npmjs.com/trusted-publishers#step-1-add-a-trusted-publisher-on-npmjscom. Ended up doing this since got a notification our token expired
1 parent 7a1b282 commit 6ae51d1

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)