ci: bump pinned Node to 22.22.2 to fix npm@latest EBADENGINE

Merged
WI
5mo ago
+3-3

What

Bumps the pinned Node version in .github/workflows/publish-npm.yml from 22.14.0 to 22.22.2 (all three setup-node steps).

Why

The publish workflow run failed on every publish job at the Update npm for OIDC support step:

npm error code EBADENGINE
npm error engine Not compatible with your version of node/npm: npm@12.0.0
npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
npm error notsup Actual:   {"npm":"10.9.2","node":"v22.14.0"}

npm install -g npm@latest now resolves to npm@12.0.0, whose engines field requires Node ^22.22.2 || ^24.15.0 || >=26. The workflow pinned Node 22.14.0, which is below the new 22.x floor, so npm refused to install with EBADENGINE. Nothing in the source changed — a new npm major raised its minimum Node requirement.

Fix

Bumping the Node pin to 22.22.2 satisfies npm 12's engine requirement while keeping npm@latest (needed for OIDC provenance / trusted publishing). This stays within the same Node 22.x major line, so it's a low-risk change. Two alternatives — pinning npm@11 or dropping the upgrade step — were rejected because the step deliberately wants a recent npm for OIDC support.

šŸ¤– Generated with Claude Code


Generated by Claude Code