Automatically bump versions according to parent branch name.
hg-auto-semver checks for the parent branch name after a merge. If the branch contains fix-
, it'll bump a PATCH version. If the branch contains feature-
, it'll bump the MINOR version
npm install hg-auto-semver --save
To your package.json add
"scripts": {
"hg-auto-semver": "hg-auto-semver"
}
In your CI, run
npm run hg-auto-semver
Enjoy auto version bumping!