- Checks that all workspace crates use the same version via
version.workspace = true. - Updates the version in the root
Cargo.tomlas indicated by the user:major,minor, orpatch. - Updates
Cargo.lockviacargo check --tests. - Adds the changes in a
Release vX.Y.Zcommit.
Upon failure, the script will print some kind of error message and stop before committing the changes.
The only argument it accepts is the type of release you want to do.
# E.g. you're on v0.28.0 and must relese v0.28.1.
$ ./scripts/release.sh patch