Skip to content

Commit 1229dff

Browse files
committed
Connect to NPM using OIDC instead of a token for release workflow
1 parent 774d086 commit 1229dff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
# Sets the GITHUB_TOKEN permissions to allow release
99
permissions:
1010
contents: write
11+
id-token: write # Required for OIDC connection with NPM
1112

1213
# This action requires a GitHub app with content write access installed
1314
# to bypass the main branch protection rule and dispatch the event to a different repo
@@ -91,8 +92,6 @@ jobs:
9192
run: |
9293
yarn buildlib
9394
npm publish
94-
env:
95-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9695
- name: Repository Dispatch
9796
uses: peter-evans/repository-dispatch@v3
9897
with:

0 commit comments

Comments
 (0)