Skip to content

Commit 68c5bd1

Browse files
committed
set up "trusted publishers" for releasing to npm
1 parent 7fa02a5 commit 68c5bd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write # required for publishing
9+
710
jobs:
811
test:
912
runs-on: ubuntu-22.04
@@ -27,7 +30,6 @@ jobs:
2730
with:
2831
node-version: 22
2932
registry-url: https://registry.npmjs.org/
33+
- run: npm install -g yarn@latest
3034
- run: yarn
3135
- run: yarn publish
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)