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
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

permissions:
id-token: write # Required for OIDC
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -144,6 +148,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
id-token: write # Required for trusted publishing
contents: write
pull-requests: write

Expand All @@ -155,12 +160,16 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify minimum npm version instead of latest for clarity:

run: npm install -g npm@^11.5.1

npm 11.5.1+ is required for OIDC trusted publishing. While Node 24 ships with npm 11.x, being explicit prevents confusion.


- name: Install dependencies
run: npm ci

Expand Down Expand Up @@ -211,5 +220,4 @@ jobs:
publish: npx tsx .github/changeset-publish.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
Loading