Implementation of versioning automation.
Versioning schema: Semantic Versioning
npm install --global versionings
- Create
./version.json
file in the root project directory. - Set required versioning configuration settings
git.platform
- The VCS platform. Supports:
github
,bitbucket
- The VCS platform. Supports:
git.url
- The VCS platform repository URL.
- Set versioning configuration settings
git.pr.target
- The VCS Pull Request target branch: Default:
master
- The VCS Pull Request target branch: Default:
{
"git": {
"platform": "github",
"url": "https://github.com/morozow/versionings.git"
}
}
versionings --semver=[<semantic-version> | patch | prepatch | minor | preminor | premajor | prerelease | major] --branch=[<version-branch-name> | any-hyphen-case-less-100-characters-string] [--push]
- semver: any semantic version degree
- major, minor, patch, premajor, preminor, prepatch, prerelease
./config.js
contains available levels:config.package.semver
- branch: version branch name comment
- any hyphen case less 100 characters string
- example: version/minor/v4.9.0-provider-service, "provider-service" is a branch name comment
- push: is responsible for new version repository push. Boolean parameter.