Skip to content

Commit 028a510

Browse files
committed
Use OIDC for release to npm
1 parent 90a1782 commit 028a510

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
release:
1014
runs-on: ubuntu-latest
@@ -25,8 +29,6 @@ jobs:
2529
registry-url: https://registry.npmjs.org
2630

2731
- run: pnpm publish --registry=https://registry.npmjs.org
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3032

3133
- uses: actions/setup-node@v4
3234
with:

0 commit comments

Comments
 (0)