How to increment prerelease version by 1 each commit/push per branch? #4653
Unanswered
dev11ocean
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Scenario:
I have multiple feature branches based off the same dev/release branch. These branches contain code to create a nuget package. I am producing a nuget package per branch per push. Nuget feeds don't allow duplicate packages of the same version, so I need a unique way to distinguish between them. The plan is to use conventional commits to increase the major.minor.patch.
I cannot find a way to increment the prerelease version. For example, I have the following branch based off of some release/dev branch with version 1.0.0: Branch1.
First push on Branch1 gives me a SemVer of 1.0.0-Branch1.1. I expect the second commit/push to give me a SemVer of 1.0.0-Branch1.2. Instead it stays at .1.
I kind of had some luck changing the unknown/feature branch configs to use mode: ContinousDelivery, but that pre-release version wouldn't reset when making new branches. So if my Branch1 SemVer is 1.0.0-Branch1.2, and I make Branch2 based off of Branch1, the SemVer is 1.0.0-Branch2.3 instead of 1.0.0-Branch2.1.
If that prerelease version is NOT the right way to do this please let me know.
Beta Was this translation helpful? Give feedback.
All reactions