Adopt @changesets/cli for synchronized version management #242

Closed
opened 2026-05-13 12:46:20 +00:00 by xingyue · 0 comments
Owner

What

Adopt @changesets/cli with fixed mode so all @uncaged/* packages share the same version number.

Why

Currently we bump versions manually via scripts/publish.sh. As the monorepo grows, keeping all packages in sync becomes error-prone. Changesets provides a structured workflow: devs add a changeset per PR, then changeset version bumps all packages together.

Changes

  1. Install @changesets/cli as a dev dependency
  2. Initialize with bunx changeset init
  3. Configure .changeset/config.json with "fixed": [["@uncaged/*"]] so all packages stay on the same version
  4. Add npm scripts: changeset (add), version (bump), release (publish)
  5. Update scripts/publish.sh or replace it with changeset-based publish flow
  6. Document the new workflow in README or CONTRIBUTING

Ref

## What Adopt `@changesets/cli` with **fixed mode** so all `@uncaged/*` packages share the same version number. ## Why Currently we bump versions manually via `scripts/publish.sh`. As the monorepo grows, keeping all packages in sync becomes error-prone. Changesets provides a structured workflow: devs add a changeset per PR, then `changeset version` bumps all packages together. ## Changes 1. Install `@changesets/cli` as a dev dependency 2. Initialize with `bunx changeset init` 3. Configure `.changeset/config.json` with `"fixed": [["@uncaged/*"]]` so all packages stay on the same version 4. Add npm scripts: `changeset` (add), `version` (bump), `release` (publish) 5. Update `scripts/publish.sh` or replace it with changeset-based publish flow 6. Document the new workflow in README or CONTRIBUTING ## Ref - https://github.com/changesets/changesets - Current publish script: `scripts/publish.sh`
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#242