Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

permissions:
contents: write
id-token: write

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

- name: Download all artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -393,12 +391,9 @@ jobs:
run: |
for dir in npm/darwin-arm64 npm/darwin-x64 npm/linux-arm64 npm/linux-x64 npm/windows; do
cd "$dir"
# Using --provenance with OIDC authentication (no token needed)
npm publish --provenance --access public
npm publish
cd ../..
done

- name: Publish main package
run: |
# Using --provenance with OIDC authentication (no token needed)
npm publish --provenance --access public
run: npm publish