bump
v1.0.0-rc.0

Install

bump is a dev dependency of the repository that you release.

Add bump

Shell
bun add --dev bump

bump 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:

Shell
bunx bump patch

Or add a script to your package.json:

package.jsonJSON
{
  "scripts": {
    "release": "bump"
  }
}

Then give the arguments to the script:

Shell
bun run release minor --dryrun

To see every option:

Shell
bunx bump --help

Requirements

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:

bump.jsonJSONC
{
  "$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.

    Type to search page titles and sections.