Skip to content

fix: pin the release npm to the 11 line - #20

Merged
oveddan merged 1 commit into
mainfrom
fix/release-npm-pin
Aug 31, 2026
Merged

fix: pin the release npm to the 11 line#20
oveddan merged 1 commit into
mainfrom
fix/release-npm-pin

Conversation

@oveddan

@oveddan oveddan commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Dispatching the Release workflow deliberately — rather than finding out during a real release — surfaced a defect in it.

The workflow installed npm@latest to get an npm new enough for trusted publishing. That now floats to npm 12, which requires Node ^22.22.2 || ^24.15.0 || >=26.0.0 and refuses to run on the Node 20 this job uses:

npm error code EBADENGINE
npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
npm error notsup Actual:   {"npm":"10.8.2","node":"v20.20.2"}

So the step meant to guarantee OIDC support was the step breaking the job, and it failed before reaching the version guard, the publish, or anything else. Failing run

OIDC publishing needs npm >= 11.5.1, not the newest npm, and the 11 line still supports Node 20. Pinning also stops the next npm major from breaking releases this same way.

Note this leaves the OIDC handshake itself still unproven — the smoke test can only reach the version guard, since mft-config@0.1.0 is already published. That gets exercised on the first real release, where a manual npm publish remains the fallback.

🤖 Generated with Claude Code

The release workflow installed `npm@latest` to get an npm new enough for
trusted publishing. That floated to npm 12, which requires Node
`^22.22.2 || ^24.15.0 || >=26.0.0` and so refuses to run on the Node 20
this job uses:

    npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
    npm error notsup Actual:   {"npm":"10.8.2","node":"v20.20.2"}

The step meant to guarantee OIDC support was the step that broke the job,
and it failed before reaching anything else. Found by dispatching the
workflow deliberately rather than discovering it during a real release.

OIDC publishing needs npm >= 11.5.1, not the newest npm, and the 11 line
still supports Node 20. Pinning also stops the next npm major from
breaking releases the same way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@oveddan
oveddan merged commit 3f1cf54 into main Aug 31, 2026
5 checks passed
@oveddan
oveddan deleted the fix/release-npm-pin branch August 31, 2026 23:21
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T23:22:03.107422Z b7b57c6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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