Release Bot
Tool for generating changelog and human-readable version for software, based on internal commitstyle conventions. Integrated with GitLab and Jira.
Install
- Install and save package:
npm i @selectel/release-bot -S
- Add two new scripts to your
package.json
:
...
"scripts" : {
"commit" "bot-commit",
"release" "bot-release"
}
...
- Add required configs to your
package.json
:
...
"config": {
"release": {
"project": "frontend/vpc-panel",
"branch": "master",
"token": "secret",
"jira": "https://jira.selectel.org",
"gitlab": "https://git.selectel.org"
}
}
...
Usage:
- From now, command
git commit
is DEPRECATED - You will make new commits only via
npm run commit
- Every time you will make new commits only via
npm run commit
- Аdd latest step in your ci:
npm run release
- See 'Tags' section in your GitLab repository