Skip to content

Version Policies

By default each package is versioned independently. If you describe a change for package a, it will only bump the version of a and any package depending on a that would need a release to include the new version.

Packages with a prerelease version (e.g. 1.0.0-alpha.1) will only see their prerelease version bumped regardless of the change type:

Old versionChange typeNew version
1.0.0-alpha.1major1.0.0-alpha.2
1.0.0-alpha.1minor1.0.0-alpha.2
1.0.0-alpha.1patch1.0.0-alpha.2

Lockstep groups packages together and bumps every package in the group by the same increment, regardless of which packages changed or the change type.

Given the following packages:

PackageVersion
a1.2.0
b1.2.0
c2.1.0

And this policy configuration:

versionPolicies:
- name: test
type: lockstep
step: minor
packages:
- a
- b

Next time chronus version runs, packages a and b will both be bumped to 1.3.0 (ignoring any change types defined in the changelogs). Package c is still versioned independently.