Skip to content

Commit 004e527

Browse files
#0 switch from classic npm token to trusted-publisher setup
Added permissions for OIDC and adjusted npm publish step.
1 parent 69182aa commit 004e527

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

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

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest
@@ -28,7 +32,5 @@ jobs:
2832
with:
2933
node-version-file: ./package.json
3034
registry-url: https://registry.npmjs.org/
31-
- run: npm ci
3235
- run: npm publish
33-
env:
34-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
36+

0 commit comments

Comments
 (0)