Skip to content

Commit 69ecdb4

Browse files
authored
chore: Remove NODE_AUTH_TOKEN from publish workflow (#127)
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 aa0291a commit 69ecdb4

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:
@@ -26,5 +27,3 @@ jobs:
2627
npm run build
2728
2829
- run: npm publish --access public
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)