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
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
node-version: "24"
registry-url: "https://registry.npmjs.org"

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

- name: Install dependencies
run: bun install --frozen-lockfile

Expand All @@ -49,8 +53,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# No NODE_AUTH_TOKEN: auth comes from OIDC trusted publishing.
# Requires a trusted publisher configured on npmjs.com for this repo,
# workflow (release.yml), and the "release" environment.
- name: Publish packages to npm
run: npm pack && npm publish ./*.tgz --access public --provenance
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading