Skip to content

Commit 5774246

Browse files
fix: Update publish.yml for permissions and release tokens (#1995)
Removed unnecessary permissions and added NPM_TOKEN for release.
1 parent 37e33bc commit 5774246

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
push:
66
branches: [ main ]
77

8-
permissions:
9-
id-token: write # Required for OIDC
10-
contents: read
11-
128
jobs:
139
build:
1410
runs-on: macos-latest
@@ -28,4 +24,5 @@ jobs:
2824
- run: npx semantic-release
2925
env:
3026
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.npm_token }}
3128
name: Release

0 commit comments

Comments
 (0)