Repository navigation
fix(release): select the pinned npm CLI throughout RC5 publication - #41
Merged
Merged
Conversation
Miskovy
marked this pull request as ready for review
October 29, 2026 14:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node 24.22.1 bundles npm 11.19.1, so the published-release workflow previously failed its exact npm 11.19.0 guard before registry access. This patch provisions the already reviewed SHA-512-pinned npm archive immediately after setup-node, then selects that CLI through GITHUB_PATH for bare npm commands and GITHUB_ENV/PJS_NPM_CLI for release helpers. Nested npm scripts set npm_execpath to the same verified CLI.
The integration regression executes the actual provisioning shell step and applies its Actions environment-file handoff. It verifies executable resolution, bare npm, nested scripts and the exact publication guard on Node 24.22.1. It runs under bash on Linux and Git bash on Windows, handles Windows Path casing, and retains the qualifier's zero-skip rule.
Only four tracked files change: the publication workflow, its release-CLI regression, the release guide and the writer-generated RC5 baseline. Node/npm pins, dependencies, version, runtime/API/aliases, release.published trigger, OIDC/npm environment binding, immutable-version/classification guards, exact-artifact checks, concurrency and timeout are unchanged.
07d4e47ec3c2b6464b45c9275579e57b94fbcfcfe64bb331979deef4d457efa42e8067cd11a3a4038a4894f51164c38a9f774f8da8ae69e65c5a9b265e8ec2653b0b86aa93dbaf5c912e76e203f1c90683d2a6af7c8957020e12d59c8edd85ae5457408c; independently verified same tree8fb24684274622d4edc6879080db73dac73af4b2d58a4e5cc9297445f642c735a6e247f48c23530cbd22f89ddc3c30453b0cd2c10c1618ead1634afddd1c04c2f9bd1a3e09002b60ed136f76ac4f3ae197b2869cc910f324434ad124bc98e5681.0.0-rc.5; 303 files; 200,346 compressed bytesThe unmodified explicit preparation writer refreshed three input hashes: publish-npm.yml, npm-cli.test.mjs and releasing.md. It also records the actual Windows x64 preparation host. Every other baseline field is identical, including 60 runtime sources, 59 runtime tests, 60 declarations, both export sets, manifest, all packed files, archive digest, pins, exclusions and immutable RC4. Workspace/package/lock bytes are unchanged.
Fresh validation:
Earlier CI attempts 40878433121 and 40879494973 exposed Windows test-harness skip/Path issues, now corrected without changing qualification rules. Failed attempts, previous baselines, fresh archives and receipts are preserved separately in ignored
.worktrees/rc5-publisher-cli/.node-tools/publisher-fix-20261029/.Historical main/PR #40 evidence keeps its original attribution. No new benchmark, extended R2/R3, additional browser campaign or independent two-clean-build reproduction is claimed. The original local canonical receipt bundle remains unavailable; fresh local/CI archives have their own inspected provenance and the identical compressed digest. Complete raw R2/R3 child reconciliation is not claimed.
This draft closes the publisher CLI defect. Release holds, Stage F applicability, transition/publication decisions, GitHub environment protection and npm trusted-publisher/direct-publish verification remain open. Dry runs establish no live OIDC authorization. No tag, release event, publish workflow dispatch, live npm publication, dist-tag change, merge or C4 work occurred.