![]() candidate Bumps the version top an release candidate version (appending -rc.# to the version.beta Bumps the version top a beta version (appending -beta.# to the version.alpha Bumps the version top an alpha version (appending -alpha.# to the version.final Bumps the version top a final version.get Returns both last tagged version and current final version.Where # is the number of commits since the last final release, branch will be the current branch if we are not in the default branch ( master, main, or other) and hash is the git hash of the current commit. If there are unstaged or uncommitted changes, they will be included in the version, following this format. getcurrent Returns the current version, it can be the tagged final version or a tagged non-final version.getlast Returns the last tagged version, it can be the final version or a non-final version.getfinal Returns the current final version.Starts from version 0.0.0, so the first time you initialize a version, it will tag it with the following bumped one ( 1.0.0 if major, 0.1.0 if minor, 0.0.1 if patch) Possible non-final versions are alpha, beta and rc (release candidate). Semtag distinguishes between final versions and non-final versions. UsageĬopy the semtag script in your project's directory. Plus, the semtag sctipt doesn't depend on the build system (so no need to use Gradle), so it can be used in any project. The goal of the semtag script is to only tag release versions, leaving the release process up to the developer. ![]() Nebula Release is for releasing and publishing components and tries to automate the whole process from tagging to publishing. You can use the script in any project that uses Git as a version control system. It can be combined with release scripts, git hooks, etc, to have a consistent versioning. It uses Git Tags to keep track the versions and the commit log between them, so no extra files are needed. This is a script to help out version bumping on a project following the Semantic Versioning specification. Notes: This script is inspired by the Nebula Release Plugin, and borrows a couple of lines from Semver Bash Tool (mostly the version comparison and the semantic version regex). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |