A simple semantic versioning tool.
- Creates and manages a file called
version.json(storing the current version) - Also updates version on
deno.jsonorpackage.jsonorjsr.jsonif available on project root. - Shells out to
gitto create commits and tags for version bumps
deno install -g -f -n version -r -A jsr:@utility/versionNote: If you don't use -A, --allow-read and --allow-write are needed for
managing the VERSION file and --allow-run for Git actions.
version init
version init 0.5.0$ version
? Pick release type
> pre
patch
minor
major
prepatch
preminor
premajor
prerelease
or
$ version <release>
Note: version updates will not change formatting of json (package/deno/jsr) files
version getIf you prefer not to install the CLI locally, just substitute
$ version [whatever] with:
deno run -A jsr:@utility/version [whatever]https://www.conventionalcommits.org/
MIT
Special mention to @dylanpyle/version. This tool is based out of it and with improvements.