Skip to content

Move to Changesets 3 - #1452

Merged
charlespwd merged 2 commits into
mainfrom
cpc-15/changesets-3
Dec 1, 2026
Merged

charlespwd merged 2 commits into
mainfrom
cpc-15/changesets-3

Conversation

@charlespwd

Copy link
Copy Markdown
Contributor

In this PR

Moves the repo from Changesets 2 to Changesets 3. Releases still work the same way: the release workflow opens a release PR, and merging it publishes.

Problem

Releases are about to come from a version commit that reaches main already versioned, and release.yml will only publish. Changesets 3 has the two pieces that workflow needs: changeset publish-plan and the changesets/action/select-mode action. It also has to run one real release before the workflow changes, so this upgrade goes first.

Solution

Change Why
@changesets/cli 3.0.3 The upgrade
changesets/action v1.9.0 to v2.1.2 in release.yml, with its renamed inputs and the has-changesets output Action v1 refuses Changesets 3, and v2 refuses Changesets 2, so both move in one PR
"privatePackages": { "version": true, "tag": false } Changesets 3 stops versioning private packages by default. The VS Code extension and theme-check-rs are private and must keep their versions
"format": false Changesets 3 would format each changelog with this repo's Prettier config, which rewrites the code samples in old entries. Changesets 2 left them alone
.changeset/changelog-summary.mjs Each changelog line is the changeset's summary, with no commit hash in front
The orchestrator's tag step runs changeset git-tag Changesets 3 renamed changeset tag. Nothing calls this step today

Example changelog entry for a committed changeset:

-- 1a2b3c4: Fix the hover on render tags
+- Fix the hover on render tags

fixed, access, baseBranch and updateInternalDependencies stay the same.

Validation

  • Release dry run on this branch: a committed test changeset for @shopify/liquid-html-parser and theme-check-vscode, then pnpm release. It bumps the same 11 packages to the same versions as Changesets 2 does on main, including the private theme-check-vscode (3.12.1). The diff only adds lines: new versions, new changelog sections with no hash, and the lockfile. I deleted the result afterwards.
  • changeset publish-plan after that dry run lists the 10 public npm packages that changed, and no private package.
  • actionlint reports nothing new in release.yml.

Not tested: the release workflow itself, which only runs on main. The first push after this merges opens or updates the release PR when a changeset is pending.

Changesets 3 adds `changeset publish-plan` and the `select-mode` and
`publish` actions, which a publish-only release workflow needs.

- `@changesets/cli` 3.0.3, and `changesets/action` v2.1.2 in
  release.yml: action v1 refuses Changesets 3, and v2 renames its inputs
  and outputs.
- `privatePackages: { version: true, tag: false }`: Changesets 3 stops
  versioning private packages by default, and the VS Code extension and
  the crates' version package are private. This keeps today's behavior.
- `format: false`: Changesets 3 would format each changelog with the
  repository's Prettier config, which rewrites the code samples of old
  entries. Changesets 2 left them as they were.
- `changelog-summary.mjs`: each changelog line is the changeset's
  summary, with no commit hash, so the changelogs read the same when the
  commit that added a changeset is not in this repository.
- The release orchestrator's tag step calls `changeset git-tag`, the new
  name of `changeset tag`.
@charlespwd charlespwd self-assigned this Dec 1, 2026
@charlespwd
charlespwd marked this pull request as ready for review December 1, 2026 17:02
@charlespwd
charlespwd requested a review from a team as a code owner December 1, 2026 17:02
@charlespwd
charlespwd added this pull request to stack #1459 December 1, 2026 17:03
@charlespwd
charlespwd merged commit 1adbb8b into main Dec 1, 2026
10 checks passed
@charlespwd
charlespwd deleted the cpc-15/changesets-3 branch December 1, 2026 20:43
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.

2 participants