Skip to content

chore: bump release workflow to Node 24 (ships npm 11)#21

Merged
StefanoGuerrini merged 1 commit intomainfrom
chore/bump-release-node
Apr 21, 2026
Merged

chore: bump release workflow to Node 24 (ships npm 11)#21
StefanoGuerrini merged 1 commit intomainfrom
chore/bump-release-node

Conversation

@StefanoGuerrini
Copy link
Copy Markdown
Contributor

Summary

Single-line change: node-version: 2024 in .github/workflows/release.yml.

Why

Node 24 LTS ships with npm 11.x, which supports OIDC publishing. Node 20 ships with npm 10.x (too old). This avoids the extra npm install -g npm@latest step we'd otherwise need in the publish job.

engines.node in package.json remains >=20 — that's the consumer requirement and is unaffected. ci.yml (test job) also stays on Node 20 so we keep testing against what users actually run.

Test plan

  • Diff is a single line
  • CI green on PR (only ci.yml runs here; release.yml triggers only on release: published / workflow_dispatch)
  • Verified on next release: npm publish --provenance works without the global-npm-install step

Node 24 ships with npm 11.x, which supports OIDC and is newer than
the Node 20 default (npm 10.x). The release job is independent of
engines.node (which still declares >=20 for consumers); only the
CI test job needs to match what users run.
@StefanoGuerrini StefanoGuerrini merged commit 8ca577e into main Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant