Skip to content

Commit e7c8c3b

Browse files
committed
fix: update for new npm publishing procedure
1 parent af60436 commit e7c8c3b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- main
66
- beta
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
Release:
1014
if: "!contains(github.event.head_commit.message, 'SKIP CI')"
@@ -23,7 +27,7 @@ jobs:
2327
node-version: 20
2428

2529
- name: Update npm
26-
run: npm i -g npm@10
30+
run: npm i -g npm@latest
2731

2832
- name: Install dependencies
2933
run: |
@@ -38,7 +42,6 @@ jobs:
3842
run: npm run release # configured in .releaserc
3943
env:
4044
GH_TOKEN: ${{ secrets.GH_TOKEN }} # auth push to remote repo
41-
NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GH_TOKEN }} # auth publish to registry
4245

4346
# Push release changes to the remote.
4447
#

0 commit comments

Comments
 (0)