bump is a dev dependency of the repository that you release.
Add bump
bun add --dev bumpbump runs on Bun 1.4 or later. The bump command runs with Bun, also when npm, pnpm, or Yarn installs it, so Bun must be on your PATH.
Run bump
Run it with bunx:
bunx bump patchOr add a script to your package.json:
{
"scripts": {
"release": "bump"
}
}Then give the arguments to the script:
bun run release minor --dryrunTo see every option:
bunx bump --helpRequirements
git
git must be on your PATH. If it is not, bump stops with Missing "git" binary.
bump reads the full history and all tags. A shallow clone stops with an error. See Full clone.
Package managers
When a release edits an npm package, bump updates each npm lockfile that git tracks in the root. It runs the package manager of that lockfile, so that tool must be on your PATH. bump edits Cargo.lock as text, so it does not need cargo. See Lockfiles for each lockfile and its tool, a missing tool, and Yarn 1.
Editor support
The config file is optional. When you add one, add a $schema line. Your editor then checks the keys and their values, and shows their docs:
{
"$schema": "https://unpkg.com/bump/schema.json",
"independent": true
}bump ignores the $schema key. See Config for every key.
Next steps
- Quick start: make your first release.
- CLI: see every argument and option.