Skip to content

Commit 7af5d53

Browse files
authored
Update npm-publish workflow with permissions
Add permissions for OIDC and update npm publish step.
1 parent 1e78dbb commit 7af5d53

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
release:
88
types: [created]
99

10+
11+
permissions:
12+
id-token: write # Required for OIDC
13+
contents: read
14+
1015
jobs:
1116
build:
1217
runs-on: ubuntu-latest
@@ -31,5 +36,3 @@ jobs:
3136
- run: npm ci
3237
- run: npm run build --if-present
3338
- run: npm publish
34-
env:
35-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)