Trying to replicate the example in the Mainline Development documentation and versioning is not incrementing as expected; Am I missing something here? #2901
-
I thought I found some issues with I was able to match to the documented versions up through I proceeded to repeat the process, but using Does Click here for a link to the repo that I created that outlines the steps that I took to generate the versions. If you go to the Actions tab, you will be able to see the history of the builds. Click here to be taken to the merge for In the build script there is a section where version is printed to the screen with a name of The configuration file being used can be found here. Here is a screen shot of the version in the diagram from the documentation that illustrates where I'm failing to produce the correct version. Any feedback would be greatly appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems like you've configured all of your branches to use mode: Mainline You may also consider fast-forward merging squashed commits of your feature branches into |
Beta Was this translation helpful? Give feedback.
It seems like you've configured all of your branches to use
mode: ContinuousDelivery
. To understand how Mainline works in GitVersion, I would recommend that you reduce yourGitVersion.yml
file to nothing but:You may also consider fast-forward merging squashed commits of your feature branches into
main
instead of adding merge-commits. That is closer to how GitHub Flow (which is a type of Mainline flow) works.