chore: migrate Changesets to v3 - #8288
Conversation
|
There was a problem hiding this comment.
Pull request overview
Migrates the repo’s Changesets toolchain from v2 → v3 (including config schema and the release workflow action), and updates root engine constraints to match the new Changesets requirements.
Changes:
- Upgraded Changesets dependencies (
@changesets/cliv3,@changesets/changelog-githubv1) and updated lockfile accordingly. - Updated
.changeset/config.jsonto the v4 schema and explicitly preserved private package versioning behavior. - Updated the release workflow to
changesets/actionv2 and migrated renamed inputs. - Added a new
@primer/cliworkspace package scaffold (commands, build config, bin entrypoint).
Show a summary per file
| File | Description |
|---|---|
| packages/cli/vitest.config.ts | Adds Vitest config for the new @primer/cli workspace. |
| packages/cli/tsconfig.json | Adds TS config for the new @primer/cli workspace. |
| packages/cli/src/commands/token.ts | Adds initial token command scaffold. |
| packages/cli/src/commands/component.ts | Adds component command scaffold (currently has an unused param lint issue). |
| packages/cli/src/cli.ts | Adds CLI entrypoint wiring for subcommands. |
| packages/cli/rolldown.config.ts | Adds rolldown build config for bundling the CLI. |
| packages/cli/README.md | Adds initial README for @primer/cli. |
| packages/cli/package.json | Adds new private workspace package metadata and scripts (bin naming concern). |
| packages/cli/bin/primer-cli.js | Adds executable entrypoint that calls the built CLI. |
| package.json | Updates engines and Changesets-related devDependencies for the v3 migration. |
| package-lock.json | Locks upgraded Changesets dependency graph and adds the new @primer/cli workspace. |
| .github/workflows/release.yml | Updates release workflow to changesets/action v2 and renamed inputs. |
| .changeset/config.json | Updates Changesets config schema URL and adds privatePackages behavior. |
Review details
Tip
Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 11/13 changed files
- Comments generated: 4
- Review effort level: Lite
| async run(ctx) { | ||
| // const {json} = ctx.args | ||
| }, |
| subCommands: { | ||
| component: componentSubCommand, | ||
| tokens: tokenSubCommand, | ||
| }, |
| "version": "0.0.0", | ||
| "type": "module", | ||
| "private": true, | ||
| "bin": "./bin/primer-cli.js", |
| { | ||
| "name": "@primer/cli", | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "private": true, | ||
| "bin": "./bin/primer-cli.js", |
|
🤖 Lint issues have been automatically fixed and committed to this PR. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d9a6cced-e3fe-441e-8626-f190f3896d69
b76548c to
ec8d7bd
Compare
This PR updates our Changesets tooling from v2 to v3 following the upstream migration guide. It also updates the release workflow to use
changesets/actionv2 and preserves our existing private package versioning behavior.Changelog
New
None.
Changed
@changesets/clito v3 and@changesets/changelog-githubto v1.changesets/actionv2 and migrate its renamed inputs.Removed
None.
Rollout strategy
Testing & Reviewing
npx changeset statusreports the same packages as before the migration.changesets/actionv2 input migration and GitHub App token wiring in the release workflow.