Skip to content

Commit 6ae3f04

Browse files
authored
Update npm-publish.yml with permissions
Added permissions for id-token and contents in npm-publish workflow.
1 parent 33a0b56 commit 6ae3f04

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

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

10+
permissions:
11+
id-token: write
12+
contents: read
13+
1014
jobs:
1115
publish-npm:
1216
runs-on: ubuntu-latest
@@ -19,5 +23,3 @@ jobs:
1923
- run: npm ci
2024
- run: npm run build --if-present
2125
- run: npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)