About
The Version Bumper Action uses the version bumper tool to figure out the next
semantic version bump based on conventional commits, or plain instructions.
Usage example
- uses: actions/checkout@v2
with:
# fetch-depth 0 will check out all the commits and tags needed for the bumper
fetch-depth: 0
- id: bumper
uses: tomerfi/[email protected]
# assuming previous tag was 1.2.4 and feat-type commits were made, this will print 1.3.0.
- run: echo ${{ steps.bumper.outputs.next }}
Inputs
Key |
Description |
Default value |
source |
Source for the bump, any semver string or 'git' to fetch from tags |
git |
bump |
Target bump, 'major', 'minor', 'patch', 'auto'. An 'auto' bump only works with a 'git' source |
auto |
label |
Development iteration build label |
-dev |
path |
When source is 'git', set repository path |
${{ github.workspace }} |
Outputs
Key |
Description |
Example |
current |
The original version |
1.2.3 |
bump |
The bump performed |
patch |
next |
The next version |
1.2.4 |
dev |
The next development iteration version |
1.2.5-dev |
major_part |
The major part of the next version |
1 |
minor_part |
The minor part of the next version |
2 |
patch_part |
The patch part of the next version |
4 |
dev_patch_part |
The patch part of the development iteration |
5-dev |
bump_object |
The original object returned from the version bumper tool
|
|
Contributors