Use Semi to increment major, minor, or patch version numbers as part of a CI/CD workflow.
String
(Optional) Existing version - Must be formatted as:0.0.0
M | m | p
(Optional) Version part to increment. Defaults top
No arguments
sh semi
Result: 0.0.1
Increment patch version
When no version
param exists, patch is used.
sh semi 8.2.2
Result: 8.2.3
Increment minor version
sh semi 12.2.8 m
Result: 12.3.0
Increment major version
sh semi 12.2.8 M
Result: 13.0.0