Skip to content

Commit 3a6c29c

Browse files
authored
Use Trusted Publishing to publish to npmjs.com
1 parent 5a016f9 commit 3a6c29c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
description: 'Version being released'
77
required: true
88

9+
permissions:
10+
id-token: write
11+
contents: read
12+
913
jobs:
1014
release:
1115
name: Verify Build & Release
@@ -55,8 +59,6 @@ jobs:
5559
tag_name: ${{ github.event.inputs.release-version}}
5660

5761
- name: Publish to npmjs.com
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6062
run: |
6163
npm publish --access public
6264

0 commit comments

Comments
 (0)