Skip to content

Commit b712ff7

Browse files
authored
feat: Update publish.yml to include permissions
Added permissions for id-token and contents in the workflow.
1 parent 16a0f24 commit b712ff7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
- alpha
88

9+
permissions:
10+
id-token: write
11+
contents: read
12+
913
jobs:
1014
publish:
1115
name: Semantic Release
@@ -22,8 +26,10 @@ jobs:
2226
- name: Install
2327
run: bun install
2428

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

0 commit comments

Comments
 (0)