Skip to content

ci(release): pin npm publish job to node 24 + npm ^12 - #487

Merged
emal-avala merged 1 commit into
mainfrom
ci/npm-publish-node24
Jul 25, 2026
Merged

ci(release): pin npm publish job to node 24 + npm ^12#487
emal-avala merged 1 commit into
mainfrom
ci/npm-publish-node24

Conversation

@emal-avala

Copy link
Copy Markdown
Member

Summary

  • The v0.27.0 Publish to npm job failed before publishing: the job pins node 20 but upgrades npm via npm install -g npm@latest, and @latest now resolves to npm 12 whose engines require node ≥22.22.2 — EBADENGINE, job dead. Pin node 24 + npm@^12 and pair them explicitly so a future npm major can't silently break the release pipeline again.
  • Note for v0.27.0 itself: re-running the failed job re-reads the workflow from the tag commit, so this fix only protects future tags — the 0.27.0 npm package needs a one-off manual npm publish from npm/ (already version-stamped) with a granular token.

Test plan

  • Workflow-only change; YAML parses (gh workflow list loads it)
  • Engine matrix verified against npm 12's published engines requirement

The npm publish job pinned node 20 but upgraded npm with @latest;
when @latest became npm 12 (engines: node >=22.22.2) the upgrade
step failed with EBADENGINE and the v0.27.0 npm publish never ran.
Pin the npm major and pair it with node 24 so a future npm major
bump cannot silently break the job again.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@emal-avala
emal-avala merged commit b0dba57 into main Jul 25, 2026
14 checks passed
@emal-avala
emal-avala deleted the ci/npm-publish-node24 branch July 25, 2026 04:56
@emal-avala emal-avala mentioned this pull request Jul 25, 2026
8 tasks
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