This pipe uses an automated release process to bump versions using semantic versioning and generate the CHANGELOG.md file automatically.
In order to automate this process it uses a tool called semversioner.
- Install semversioner in local.
pip install semversioner- During development phase, every change that needs to be integrated to
masterwill need one or more changeset files. You can use semversioner to generate changeset.
semversioner add-change --type patch --description "Fix security vulnerability with authentication."- Make sure you commit the changeset files generated in
.change/next-release/folder with your code. For example:
git add .
git commit -m "BP-234 FIX security issue with authentication"
git push origin - That's it! Merge to
masterand Enjoy! Bitbucket Pipelines will do the rest:
- Generate new version number based on the changeset types
major,minor,patch. - Generate a new file in
.changesdirectory with all the changes for this specific version. - (Re)generate the CHANGELOG.md file.
- Bump the version number in
README.mdexample andpipe.ymlmetadata. - Commit and push back to the repository.
- Tag your commit with the new version number.