Skip to content

fix(release): select the pinned npm CLI throughout RC5 publication - #41

Merged
Miskovy merged 3 commits into
mainfrom
release/rc5-publisher-cli
Oct 29, 2026
Merged

Miskovy merged 3 commits into
mainfrom
release/rc5-publisher-cli

Conversation

@Miskovy

@Miskovy Miskovy commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

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.

Identity Value
Fetched base/main 07d4e47ec3c2b6464b45c9275579e57b94fbcfcf
Base tree e64bb331979deef4d457efa42e8067cd11a3a403
Head 8a4894f51164c38a9f774f8da8ae69e65c5a9b26
Head tree 5e8ec2653b0b86aa93dbaf5c912e76e203f1c906
PR CI execution commit 83d2a6af7c8957020e12d59c8edd85ae5457408c; independently verified same tree
Previous baseline SHA-256 8fb24684274622d4edc6879080db73dac73af4b2d58a4e5cc9297445f642c735
New baseline SHA-256 a6e247f48c23530cbd22f89ddc3c30453b0cd2c10c1618ead1634afddd1c04c2
Actual archive SHA-256, unchanged f9bd1a3e09002b60ed136f76ac4f3ae197b2869cc910f324434ad124bc98e568
Package 1.0.0-rc.5; 303 files; 200,346 compressed bytes

The 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:

  • Windows Node 24.22.1 was checksum-verified; npm 11.19.0 was provisioned through the committed integrity verifier. Actual bundled npm 11.19.1 is rejected; corrected bare/nested commands execute 11.19.0. The final CLI tests also pass with only the Windows Path key inherited.
  • Release unit regressions, 14 baseline regressions, API/source/declaration freeze, both locked compilers, ordinary package smoke, lint, full formatting, 1,743 documentation links and diff checks pass. Installed exact-archive JS/TS checks pass, including 19 lifecycle scenarios, 13 public errors and six examples.
  • The production tarball helper passes selected-CLI publish --dry-run --ignore-scripts, offline installation and the unchanged final rehash on the clean head above. A labelled changed-gzip-header fixture fails the frozen digest check before any npm rehearsal/publication call; the immediate workflow prepublication rehash is preserved.
  • Final push CI: 7/7 jobs pass. Final PR CI: 7/7 jobs pass. These use the existing six supported-minimum cells, standard R2/R3, Chromium job and registered candidate qualification.
  • Downloaded and reconciled all six push runtime receipts: exact head association, 35/35 release tests with zero skips, 476/476 contracts, matching standard R2/R3 report identities, and six retained tarballs independently hashing to the unchanged frozen digest. The PR Linux Node 24 receipt independently identifies the same-tree execution commit and passes the same focused checks.

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.

@Miskovy
Miskovy marked this pull request as ready for review October 29, 2026 14:13
@Miskovy
Miskovy merged commit 131d281 into main Oct 29, 2026
14 checks passed
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