Skip to content

Trying to understand how "next-version" in GitVersion.yml works #2641

Answered by asbjornu
koonfoon asked this question in Q&A
Discussion options

You must be logged in to vote

I have answered this on Stack Overflow:

next-version is described in the documentation as:

Allows you to bump the next version explicitly, useful for bumping main or a feature with breaking changes a major increment.

You can think of next-version as a "future" git tag. The value of next-version should be equal to the value of the git tag you are going to add to your next release commit (a merge commit from develop to main, for instance).

As GitVersion is configured to increment either Major, Minor or Patch, for some branches you may want to exercise more control over which version part is incremented. Say GitVersion is configured to increment: Patch, but you know that there are features in

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asbjornu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants