I use GitTools for auto increment semVer.
The current version: v1.1.1
calculate SemVer:
"MajorMinorPatch": "1.2.0"
when incrementing the patch:
git commit -a -m "+semver: patch [skip azurepipelines]" --allow-empty
Write-Host "$(GitVersion.SemVer)"
print > "MajorMinorPatch": "1.2.0"
which I expect:
"MajorMinorPatch": "1.2.1"
more example
when incrementing the minor:
git commit -a -m "+semver: minor [skip azurepipelines]" --allow-empty
Write-Host "$(GitVersion.SemVer)"
print > "MajorMinorPatch": "1.2.0"
which I expect:
"MajorMinorPatch": "1.3.0"