Skip to content

version

Calculate a semantic version bump for the given changes. Requires all PRs to have labels for the change type. If a PR does not have a label associated with it, it will default to patch or whatever you configure the default label to.

NOTE: This does not change the version of your project or anything in your repo. It just returns patch, minor, or major.

Options

FlagTypeDescription
--only-publish-with-release-labelBooleanOnly bump version if 'release' label is on pull request
--fromStringGit revision (tag, commit sha, ...) to calculate version bump from. Defaults to latest github release

Examples

Get the new version using the last release to head

auto version
auto version

Useful in conjunction with npm version to auto-version releases.

Configure Versioning Labels

You can customize the versioning labels in the .autorc. To see configuration go here.