Skip to content

feat: preparation for v12#2000

Merged
reggi merged 1 commit into
mainfrom
reggi/add-v12-releases
Jul 10, 2026
Merged

feat: preparation for v12#2000
reggi merged 1 commit into
mainfrom
reggi/add-v12-releases

Conversation

@reggi

@reggi reggi commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Situation

npm@12.0.0 was released, but no CLI documentation was generated for v12 (see npm/cli#9742). https://docs.npmjs.com/cli still redirects to v11.

Root cause

The nightly Update CLI workflow only runs npm run build -w cli, which reads the manually-maintained cli/releases.json. That file had no v12 entry, so build.js never matched npm@12.x to a release and generated nothing. Additionally v11 still pointed at the latest branch, which now tracks v12 in npm/cli.

Change

Repoint v11 to its new release/v11 branch and add a v12 entry on latest, mirroring the previous major preparations ("Update CLI releases for npm 10" and #1402 "preparation for v11").

Adding the new v12 key triggers the build's cache-voiding (voidOnNewKey), which resets v11 to legacy and regenerates the nav. After merge, the nightly update-cli job (or a manual workflow_dispatch) will build and publish the v12 docs.

Fixes npm/cli#9742

Add a v12 release entry pointing at the `latest` branch and repoint v11
to its new `release/v11` branch, mirroring the previous major prep
(v10/v11). Without a v12 entry the docs build never matches npm@12.x, so
no v12 CLI documentation is generated.

Fixes npm/cli#9742

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bfe56b28-0e89-4026-aa38-ebf121659ae5
@reggi reggi merged commit 49216d9 into main Jul 10, 2026
7 checks passed
@reggi reggi deleted the reggi/add-v12-releases branch July 10, 2026 20:53
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.

Missing CLI documentation for npm@12.0.0

3 participants