Repository navigation
fix(ci): run release-pr on the runner's Node - #1744
Conversation
The release-pr job reused the shared install-node step, which #1736 switched to `pnpm run ci:setup-node`. The job deliberately installs no pnpm because it holds the release App token, so the step failed with "pnpm: command not found" and no release PR could be opened. The job does not need a pinned Node. Its scripts use only node: builtins, and the setup script is itself .mts, so the runner's Node already has to strip types before the pinned install could even run. Dropping the step leaves the job installing nothing.
PR SummaryLow Risk Overview That job is intentionally pnpm-free (it holds the release App token), so it no longer includes the shared Mint release App token and Commit the bump and open the release PR now use the Reviewed by Cursor Bugbot for commit edea205. Configure here. |
de9f6c6
into
v1.x
The
mode: release-prdispatch of the publish workflow fails in the "Open the release PR" job withpnpm: command not found(run).That job reuses the shared
&install-nodestep, which #1736 switched fromnode scripts/ci/setup-node.mjstopnpm run ci:setup-node. The job deliberately installs no pnpm because it holds the release App token, so the step can no longer run there.This drops the Node install from
release-prinstead. The pin no longer buys anything in that job:.mts, so the runner's Node must already strip types before the pinned install could run. The pin used to guarantee that; it no longer can.mint-app-token.mjsandopen-release-pr.mts(and its imports) use onlynode:builtins.ubuntu-latestimage the job ran on (ubuntu-26.04, 20261111.196) ships Node 24.22.2. Locally, both scripts load and answer--helpon Node 22.18.0, 24.22.1 and 24.22.3, andtest/release-open-pr.test.mtsplustest/release-workflow.test.mtspass on 24.22.1.The job now installs nothing, which matches its comment. The shared step stays as #1736 left it for
verifyandprepare, which install pnpm first.After merge, re-dispatch with
mode: release-pranddry-run: false. That run is the real test, since nothing local exercises the GitHub API calls.Expected reviewer effort: Stamp