Skip to content

Commit 02b17d7

Browse files
authored
Fixed publishing token perms (#40)
Co-authored-by: Tomas Vesely <448809+wham@users.noreply.github.com>
1 parent 9e6ab58 commit 02b17d7

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
permissions:
2020
contents: write
21+
id-token: write
2122

2223
jobs:
2324
check-pr-label:
@@ -341,9 +342,6 @@ jobs:
341342
with:
342343
node-version: "20"
343344
registry-url: "https://registry.npmjs.org"
344-
# Enable OIDC trusted publishing authentication
345-
# This eliminates the need for NPM_TOKEN secrets
346-
# See: https://github.blog/changelog/2024-04-15-npm-provenance-now-supports-github-actions/
347345

348346
- name: Download all artifacts
349347
uses: actions/download-artifact@v4
@@ -393,12 +391,9 @@ jobs:
393391
run: |
394392
for dir in npm/darwin-arm64 npm/darwin-x64 npm/linux-arm64 npm/linux-x64 npm/windows; do
395393
cd "$dir"
396-
# Using --provenance with OIDC authentication (no token needed)
397-
npm publish --provenance --access public
394+
npm publish
398395
cd ../..
399396
done
400397
401398
- name: Publish main package
402-
run: |
403-
# Using --provenance with OIDC authentication (no token needed)
404-
npm publish --provenance --access public
399+
run: npm publish

0 commit comments

Comments
 (0)