Skip to content

Commit 39ed282

Browse files
authored
Update CI workflow to use OIDC npm tokens
Added permissions for id-token, contents, and pull-requests.
1 parent 85fad40 commit 39ed282

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

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

9+
permissions:
10+
id-token: write
11+
contents: write
12+
pull-requests: write
13+
914
jobs:
1015
build-and-publish:
1116
runs-on: ubuntu-latest
@@ -53,6 +58,4 @@ jobs:
5358
with:
5459
publish: pnpm release
5560
env:
56-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
57-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5861
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)