Repository navigation
Release the stable CLI v1 patch from main - #827
Merged
Merged
Conversation
roncohen
enabled auto-merge
November 26, 2026 09:07
Contributor
Author
|
The CLI v1 CI dry run passed on The live run is pending independent release approval. The person approving the release does not need GitHub admin access; an administrator can dispatch the approved run afterward. If a rollback is needed, an npm maintainer can restore |
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.
What changed
Give stable CLI users the multi-organization fix without moving them to CLI v2. Normal Changesets releases stay in prerelease mode; no changes to the v2 workspace, its lockfile, or its
nexttag are needed.@reflag/cli1.0.5 source inreleases/cli-v1/, outside the workspace Changesets publishes. The v1 type generator keeps the existingconfig.payloadshape and valid, non-colliding alias names. It escapes keys, disambiguates colliding aliases, and preserves optional properties when inferring nested arrays. CI builds it with the immutable lockfile from its originalmainancestor. It never reads a maintenance branch when preparing the release.repository_dispatchevent in the existing trustedpublish.ymlworkflow. The event runs onmainand the request must name that exact commit, so a changed branch head fails rather than publishing a different revision. Merging the PR does not trigger a stable publish.publish: truerequires a repository administrator, including on reruns. The publish job rechecks that the artifact is the requested CLI version and is the next stable v1 patch after npmlatest. It publishes only that tarball tolatest.This replaces the branch-selectable workflow proposed in #824. #826 has already removed the old publisher from the maintenance branch.
Release and rollback
After both PRs are merged, wait for required checks on the reviewed
mainrevision. Start with a dry run, supplying the full commit SHA frommain:Record the successful dry-run link and approval before an authorized administrator requests
publish: truefor the same reviewed SHA. Confirm an authorized operator can restorelatestto1.0.4before publishing. Verifylatestis1.0.5afterward andnexthas not changed. If rollback is needed, restore the previouslatesttag without touchingnext; users already pinned to1.0.5need the follow-up patch or an explicit pin to1.0.4.Verification
1.0.5tarball andlatesttag. No GitHub release was dispatched; live publishing authorization has not been exercised.