Skip to content

ci: release job on Node 22 so npm publish stops failing (v5.2.3)#16

Merged
ttpears merged 1 commit into
mainfrom
fix/ci-release-node22
Jul 22, 2026
Merged

ci: release job on Node 22 so npm publish stops failing (v5.2.3)#16
ttpears merged 1 commit into
mainfrom
fix/ci-release-node22

Conversation

@ttpears

@ttpears ttpears commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Why

The release workflow's npm install -g npm@latest step (needed for trusted publishing, which requires npm ≥ 11.5.1) ran on Node 20, but npm 12.x requires Node ≥ 22.22EBADENGINE, aborting npm publish and the GitHub Release on every v5.2.x tag. The container image builds in a separate job, so Swarm deploys were fine — but the npm package and GitHub Releases went stale (npm still at 5.1.0).

Fix

Bump the release job's setup-node to Node 22 so npm@latest installs cleanly and provenance publishing works.

Validation

Cutting 5.2.3 (no library-code change vs 5.2.2 — CI + version only) exercises the fixed workflow and finally publishes the accumulated 5.2.x fixes (OOM, stall, search-syntax) to npm. The Swarm stays on the functionally-identical 5.2.2 image; no redeploy needed.

The release job installed npm@latest (needed for trusted-publishing, npm >=11.5.1)
on Node 20, but npm 12.x requires Node >=22.22 — it failed with EBADENGINE and
aborted npm publish + the GitHub Release for every v5.2.x tag (the container image
built in a separate job, so Swarm deploys were unaffected, but the npm package and
GitHub Releases went stale). Bump the release job to Node 22.

Version bump to 5.2.3 cuts a release that validates the fix and finally publishes
the accumulated 5.2.x fixes to npm.
@ttpears
ttpears merged commit 5d7a644 into main Jul 22, 2026
3 checks passed
@ttpears
ttpears deleted the fix/ci-release-node22 branch July 22, 2026 03:35
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