monochange
manage versions and releases for your multiplatform, multilanguage monorepo

monochange is a release-planning toolkit for monorepos that span more than one package ecosystem.
It discovers packages, normalizes dependency data, applies group rules, turns explicit change files into release plans, and can run config-defined release preparation from those same inputs.
Use it when your repository has outgrown one-ecosystem release tooling and you want one model for Cargo, npm/pnpm/Yarn/Bun, Deno, Dart/Flutter, Python, and Go.
Who monochange is for
- maintainers of monorepos that span more than one package ecosystem
- teams replacing ad hoc release scripts with explicit, reviewable change files
- people who want one safe release-planning model before adding provider automation
First 10 minutes
Install the prebuilt CLI from npm:
npm install -g @monochange/cli
monochange --help
If you prefer a Rust-native install, use cargo install monochange instead.
Then run one safe local walkthrough:
Generate a starter config from the packages monochange detects:
monochange init
monochange init writes an annotated, minimal monochange.toml without default [cli.*] workflow aliases. Use short built-ins such as monochange create, monochange preview, and monochange prepare immediately; every built-in step is also exposed as monochange step <name>. Add [cli.*] tables for repository-specific named workflows, or use monochange command to edit them interactively. The legacy monochange populate command currently adds nothing because the default workflow set is empty. init --force replaces the config rather than incrementally updating it.
For automated CI setup, include the --provider flag:
monochange init --provider github
This configures the [source] section and creates GitHub Actions workflows for changeset policy and release automation. It intentionally does not add [cli.*] workflow commands.
Validate the workspace:
monochange step validate
Discover the package ids you will use in commands and changesets:
monochange discover --format json
Create one change file for a package id:
monochange create --package <id> --bump patch --reason "describe the change"
Most changes should target a package id. Use group ids only when the change is intentionally owned by the whole group.
When a package is only changing because another dependency or version group moved first, author that context explicitly instead of relying on anonymous propagation:
monochange create --package <dependent-id> --bump none --caused-by <upstream-id> --reason "dependency-only follow-up"
Preview the release plan safely:
monochange preview --format json
Add --diff when you want unified file previews for version and changelog updates without mutating the workspace:
monochange preview --diff
This first run is safe: nothing is published. Stop here until you are ready to prepare release files locally.
When you are ready to prepare the release locally, run monochange prepare. Preparation updates versioned files and changelogs and consumes applied changesets. Use monochange run release instead when your repository defines a release workflow and its steps match the task.
If you do not know which package id to target, rerun monochange step discover --format json and copy an id directly from the output.
Next steps
- Start here: the shortest beginner path through installation,
monochange init, and --dry-run
- Installation: npm, Cargo, optional assistant tooling, and repository-development setup
- Your first release plan: a fuller walkthrough built around generated config
- Discovery: what monochange finds and how ids are rendered
- Configuration reference: evolve the generated config once the basics feel familiar
- Groups and shared release identity: when to reach for group ids instead of package ids
Why use monochange?
- use one release-planning model across several language ecosystems
- replace ad hoc scripts with explicit change files and deterministic release output
- keep related packages synchronized with
[group.<id>]
- propagate dependent bumps through one normalized dependency graph
- expose repository-defined workflow commands as
monochange run <command> from [cli.<command>] entries in monochange.toml
Advanced workflows
GitHub automation
monochange can promote one prepared release into several source-provider automation flows without changing the underlying release-plan model.
monochange run release --dry-run --format json refreshes the cached manifest and shows downstream automation data, including authored changesets plus linked release context metadata
monochange step publish-release --dry-run --format json previews provider release payloads before publishing
monochange step open-release-request --dry-run --format json previews the release branch, commit, and release-request body
- when
[source.pull_requests].verified_commits = true and OpenReleaseRequest runs on GitHub Actions for the configured GitHub repository, the GitHub provider pushes a normal release branch commit first, then attempts to replace it with a Git Database API commit that GitHub reports as verified; if verification or the API update fails, the normal pushed commit remains in place
monochange step release-record --from <tag> inspects the durable release declaration stored in the release commit body
monochange step tag-release --from HEAD --dry-run --format json previews the post-merge release tag set declared by that durable record
monochange step retarget-release --from <tag> --dry-run previews a release-retarget plan before mutating tags
- changelog templates can render linked change owners, review requests, commits, and closed issues through
{{ context }} or fine-grained metadata variables
monochange step affected-packages --format json --verify --changed-paths ... evaluates pull-request changeset policy from CI-supplied paths and labels without requiring a config-defined wrapper command
monochange step diagnose-changesets --format json shows all discovered changeset context or restricts to explicit inputs
Tag-release JSON for follow-up workflows
When a post-merge workflow needs to trigger follow-up release work, prefer monochange step tag-release --from HEAD --format json and read the release tag by package or group id from the top-level tags object:
{
"tags": {
"main": "v1.2.3",
"sdk": "sdk/v1.2.3"
}
}
name/version examples such as sdk/v1.2.3 correspond to a tag template like {{ name }}/v{{ version }}.
The tags object is intentionally flat because package ids and group ids share the same monochange namespace. A workspace cannot have both a package and a group with the same id, so workflows do not need separate tags.packages and tags.groups branches or prefixed lookup keys. This makes automation stable and explicit: use .tags.<id> for the package or group whose release should drive the next step.
A package or group might not be released in a particular release commit. Handle that by checking whether tags has an entry for the id you care about. If there is no tag attached to that id, you can assume that release did not include that package or group and skip that follow-up workflow.
For example, a repository with [group.main] can trigger a downstream GitHub release workflow from the main group tag with:
monochange step tag-release --from HEAD --format json >/tmp/tag-report.json
tag="$(jq -r '.tags.main // empty' /tmp/tag-report.json)"
if [ -z "$tag" ]; then
echo "No main group tag found in tag-report.json, skipping release trigger"
exit 0
fi
gh workflow run release.yml --ref "$tag" -f tag="$tag"
Avoid indexing tagResults[0] for workflow control. tagResults remains the audit log of tag operations, while tags is the stable id-addressable map for automation.
Assistant setup and MCP
Assistant tooling is optional.
When you want AI-assisted workflows, monochange ships built-in setup guidance and an MCP server:
monochange help skill
monochange skill -a pi -y
monochange help subagents
monochange subagents pi
monochange mcp
See Advanced: Assistant setup and MCP for the full setup flow.
What monochange can do
- discover Cargo, npm/pnpm/Yarn/Bun, Deno, Dart, Flutter, Python, and Go packages
- normalize dependency edges across ecosystems
- coordinate shared package groups from
monochange.toml
- compute release plans from explicit change input
- expose repository-defined workflow commands as
monochange run <command> from [cli.<command>] definitions
- run config-defined release commands from
.changeset/*.md
- render changelogs through structured release notes and configurable formats
- emit stable release-manifest JSON for downstream automation
- preview or publish provider releases and release requests from typed command steps and shared release data
- inspect durable release records from tags or descendant commits with
monochange step release-record
- create post-merge release tags from a merged release commit with
monochange step tag-release --from HEAD
- repair a recent source/provider release by retargeting its release tags with
monochange step retarget-release
- inspect changeset context and review metadata with
monochange step diagnose-changesets for both human and automation workflows
- apply Rust semver evidence when provided
- expose a bundled assistant skill plus a stdio MCP server with
monochange mcp
- publish the CLI as
@monochange/cli and the bundled agent skill as @monochange/skill
- publish end-user documentation through the mdBook in
docs/
Workspace crates