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
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
node-version: 22
cache: npm

# Trusted publishing (OIDC) requires npm >= 11.5.1; Node 22 still ships npm 10.
- name: Upgrade npm for trusted publishing
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

Expand All @@ -35,8 +39,9 @@ jobs:
- name: Test
run: npm test

# No NPM_TOKEN: @semantic-release/npm authenticates to npm via OIDC
# trusted publishing (needs id-token: write, granted above).
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading