Skip to content

Commit d5404a2

Browse files
authored
Update publishing flow to use trusted publisher (#48)
1 parent 87e01fa commit d5404a2

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
@@ -5,6 +5,10 @@ name: Node.js Package
55
on:
66
workflow_dispatch
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -29,5 +33,3 @@ jobs:
2933
registry-url: https://registry.npmjs.org/
3034
- run: pnpm install
3135
- run: pnpm publish --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)