nextsv
A utility to calculate the level of change and the next semantic version number based on the conventional commits since the last version tag.
Feature set
- Calculate next semantic version number
- Calculate the level to change for next semantic version number
- Support basic semantic version components: Major, Minor, and Patch
- Check for required files (e.g. CHANGELOG.md)
- Set level of change (Breaking, Feature, Fix, Other) at which required files are required
- Check that any changes made meet a specified level
- Support pre-release versions (alpha, beta, rc)
- Update to release version (removing pre-release identifiers)
- Handle case where no tag is found
CLI Usage
Install the CLI using cargo install.
Run in your project directory and check the version
$ nextsv --version
nextsv 0.8.4
Running the application provides the level for the next semantic version change.
Help provides all the options
A clean response of the level to update is reported using the -q flag.
This can be used with cargo release
to update and publish a new release.
Further details on usage scenarios can be found here.
Library Usage
To use the library add the crate to dependencies in the project's Cargo.toml.
[]
= "0.8.4"