Skip to content

Commit a2eebb8

Browse files
committed
chore: change release method to Trusted publishing
1 parent 9fb7985 commit a2eebb8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/on-release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Node.js Publish
2+
23
on:
34
release:
45
types: [published]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
511
jobs:
612
build:
713
runs-on: Ubuntu-latest
@@ -14,6 +20,4 @@ jobs:
1420
# Needs to be explicitly specified for auth to work
1521
registry-url: 'https://registry.npmjs.org'
1622
- run: npm ci
17-
- run: npm publish --access public
18-
env:
19-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
- run: npm publish --access public

0 commit comments

Comments
 (0)