Version, commit, and tag the packages that changed.
bump looks at what changed since your last release, bumps those packages (and the ones that depend on them), then makes one commit with a tag per release. Publishing and pushing are up to you.
$ bump minor --dryrun
BUMP @acme/core 1.2.0 → 1.3.0 (changed)
BUMP @acme/cli 0.4.1 → 0.4.2 (dependent)
EDIT @acme/cli dependencies["@acme/core"] ^1.2.0 → ^1.3.0
EDIT @acme/docs devDependencies["@acme/core"] ^1.2.0 → ^1.3.0
DONE Dry run; no files were written$ bump minor
BUMP @acme/core 1.2.0 → 1.3.0 (changed)
BUMP @acme/cli 0.4.1 → 0.4.2 (dependent)
EDIT @acme/cli dependencies["@acme/core"] ^1.2.0 → ^1.3.0
EDIT @acme/docs devDependencies["@acme/core"] ^1.2.0 → ^1.3.0
DONE Committed 0394e49 release: @acme/core@1.3.0, @acme/cli@0.4.2
Tagged @acme/core@1.3.0, @acme/cli@0.4.2
Small tool, whole release.
JS and Rust, in one repo
Works with package.json and Cargo.toml packages, even mixed in one repository. Cargo workspaces
One version, or one each
Lockstep gives every package one version. Independent gives each package, or each group, its own. Modes
Only the versions change
bump edits the version strings in place. Your comments and formatting stay put.
Lockfiles in the same commit
Also bun.lockb, package-lock.json, and yarn.lock (Yarn 2+), so a frozen install still passes. Lockfiles
Dependents follow
A package that depends on a released one gets a patch (or a prerelease), and its range is rewritten to match.
All or nothing
If any step fails, bump undoes the files, the commit, and the tags. Try it first with --dryrun.
Versions come from the manifests. Tags mark the last release.
If those two ever disagree, bump stops and tells you why. How it works
Find what changed
Each manifest holds its version. The tag for that version, like v1.2.0 or app@1.2.0, marks the commit to diff against.
Bump it, and its dependents
Changed packages get your type. Packages that depend on them get a patch (or a prerelease), and their ranges are rewritten.
One commit, a tag each
Lockfiles update, then one commit lands with an annotated tag per release. Push when you are ready.
Optional. Plain JSON.
Without a config, bump reads your workspaces from package.json, pnpm-workspace.yaml, or Cargo.toml. Config
{
"$schema": "https://unpkg.com/bump/schema.json",
"independent": true,
"packages": ["packages/*", "crates/*", "!packages/internal-*"],
"groups": {
// these always release together
"web": ["@acme/ui", "@acme/app"],
},
"tag": "{name}@{version}",
}