fix(setup-changesets): pair the CLI and action majors, add the v2→v3 upgrade path - #8
Merged
Merged
Conversation
|
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.
Fixes #7.
Summary
The skill taught
changesets/action@v1with the v1 input names,@changesets/config@3.0.0, and an unpinned@changesets/cli init— which now installs v3. Following it today produces a v3 CLI wired to a v1 action, which fails on the first release:There was also no upgrade path: Step 1's
.changeset/ already existsexit sends you to "audit config/scripts/CI only", which does not surface a major mismatch.Found and validated while unbreaking
cyberuni/universal-plugin— its release job had been red since the shared workflow moved tochangesets/action@v2.1.0(cyberuni/universal-plugin#35). 30 repos call that workflow; 25 were on CLI v2 when it landed.Changes
SKILL.md:@v2with the renamed inputs (version-script,publish-script,github-tokeninput rather than theGITHUB_TOKENenv var). Called out that the old names are silently ignored under v2, so a half-done bump leaves the action running with no publish script.@changesets/config@4.0.0. Step 2 pins@changesets/cli@3.main, not at merge time.changeset statusto prove pending changesets survive an upgrade.github-token:input, notGITHUB_TOKEN:env.references/migration/cli-v3-upgrade.md(new) — follows the existing reference-loading discipline, read only when Step 1 detects a mismatch:^22.11 || ^24 || >=26, npm>=10.9.0, pnpm>=10.0.0, yarn>=4.5.2, Yarn Classic dropped)prettier→format,privatePackagesnow opt-in,changeset tag→git-tag,--sinceMasterremoved,versionexits 1 with no changesets, prerelease dir move, peer bumps now patch, ESM)changeset versionfor real and reverts itTest plan
main— the patch is additive on current upstream text; no restructuring, and thereferences/ci+references/migrationarchitecture is untouchedchangeset statusunder v3 parsed all 10 pending changesets,pnpm run versionproduced the correct minor and changelog, repo verify greenchangesets/action@v1reference converted except the two intentional ones in the pairing tableskills/setup-changesets/modified🤖 Generated with Claude Code