Skip to content

Commit 80a0cbc

Browse files
authored
Use trusted publishing for npm
1 parent 2a4ea96 commit 80a0cbc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.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
build:
1216
runs-on: ubuntu-latest
@@ -28,5 +32,3 @@ jobs:
2832
node-version: 20
2933
registry-url: https://registry.npmjs.org/
3034
- run: npm publish
31-
env:
32-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)