Skip to content

Commit 1e13ab8

Browse files
committed
Update publishing flow to use trusted publishers
1 parent 24f0f39 commit 1e13ab8

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
@@ -26,5 +30,3 @@ jobs:
2630
node-version: 12
2731
registry-url: https://registry.npmjs.org/
2832
- run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)