Skip to content

Commit d236b64

Browse files
add oidc permissions to npm publish gh action
1 parent 40e1b7a commit d236b64

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@ on:
1111
- edited
1212
- released
1313

14+
permissions:
15+
id-token: write
16+
contents: read
17+
1418
jobs:
1519
publish-npm:
1620
runs-on: ubuntu-latest
1721
steps:
1822
- uses: actions/checkout@v4
1923
- uses: actions/setup-node@v4
2024
with:
21-
node-version: 20
25+
node-version: 22
2226
registry-url: https://registry.npmjs.org/
2327
- run: npm ci
2428
- run: npm test

0 commit comments

Comments
 (0)