Skip to content

Commit a0b187c

Browse files
authored
fix(ci): support trusted publishing
1 parent abf1f65 commit a0b187c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- main
77
- alpha
88

9+
permissions: write-all
10+
911
jobs:
1012
publish:
1113
name: Semantic Release
@@ -22,8 +24,12 @@ jobs:
2224
- name: Install Dependencies
2325
run: bun install
2426

27+
- name: Setup node for npm publish
28+
uses: actions/setup-node@v6
29+
with:
30+
node-version: latest
31+
2532
- name: Semantic Release
26-
uses: cycjimmy/semantic-release-action@v5
33+
uses: cycjimmy/semantic-release-action@v6
2734
env:
2835
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)