Skip to content

publish bump-versions

Terminal window
holocron publish bump-versions <version> [--group <folder> | --exclude-group <folder>...] [--include-private]

Bumps every non-private package’s version field in every package the workspace declares (pnpm-workspace.yaml) to <version>. Used as the prepareCmd in release.config.ts during a semantic-release run.

With --group, only one version group moves: the packages in that folder of the repo. The root package.json and every other group are left alone. A group with no packages is an error.

Private packages are skipped, because they are not published. --include-private bumps them too, for a tag-only group such as ci, whose one private package only records the version.

With --exclude-group (repeatable), the opposite: the repo-wide bump moves the root and every package except those groups, which keep their own versions. A repo that releases some folders separately runs its repo-wide release this way, so it does not take them in.

Option Description
<version> Target version (e.g. 4.2.0 or 2.0.0-alpha.1)
--group Only this folder’s packages; the root stays as is
--exclude-group Everything but this folder’s packages (repeatable)
--include-private Bump private packages too (for a tag-only group)
--dry-run Print what would change without writing any files
--cwd Monorepo root (default: process.cwd())
Terminal window
# In release.config.ts:
prepareCmd: "node cli/cli/dist/cli.mjs publish bump-versions ${nextRelease.version}"
# One group, as that group's release.config.ts runs it:
prepareCmd: "node cli/cli/dist/cli.mjs publish bump-versions ${nextRelease.version} --group clients"
# Manual invocation:
holocron publish bump-versions 4.2.0 --dry-run