@stolen_orange/versioning
v1.1.25
Published
Package allows to update package.json version during GitLab merging process. It uses MR labels as tips for version update.
Downloads
14
Readme
Package allows to update package.json version during GitLab merging process. It uses MR labels as tips for version update.
version-cli [command] [flags]
- is the cli usage template
#####Commands:
up
- writes a new version into package.json.
Use it to update version.
- Determines latest project version tagged in git and, if it's greater than current package.json version, uses it as the base for the update.
- If the last tagged version is lower than package.json one or equals to it, uses package.json version as the base for the update.
- If none tagged version is found uses package.json version as the base one.
######[no flags]
confirm
- commits new version.
######[flags]:
--git-push
- using to push new commits and tags;--git-tag
- using to set git tag for the new version;
*To allow runner to perform git operations you need to preset GIT_PRIVATE_TOKEN GitLab custom environment variable
#####Allowed MR labels:
Use patch
, minor
or major
labels, depending of what part of project version you need to update.