0.0.0-experimental.97f85c6 • Published 4 years ago

gsvt v0.0.0-experimental.97f85c6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

gsvt

Git SemVer Tags

Create git semver tags with additional major and minor tags easily.

Example

Let's say the latest tag is v2.1.1:

CommandResult
gsvtv2.1.2, v2.1, v2
gsvt majorv3.0.0, v3.0, v3
gsvt minorv2.2.0, v2.2, v2
gsvt patchv2.1.2, v2.1, v2
gsvt 1.2.3v1.2.3, v1.2, v1

If there is no tag matching the pattern v*.*.*, the next patch will be v0.0.1.

Install

npm install -g gsvt

Or use npx gsvt directly without installing.

Usage

gsvt detect the git tags with v.*.*.* automatically, and create the next patch semver tag.

gsvt

You can increase the version with major or minor:

gsvt major
gsvt minor
gsvt patch

gsvt patch is equal to gsvt.

You can also specify the version manually:

gsvt <version>
gsvt v0.1.0

And you can push the commit with tags:

git push origin main --tags -f

License

MIT

Copyright (c) 2022-preset ViPro (京京)