Bump messages on master as version source #4325
-
We have a master branch and feature branches. We want to use bump-messages only, and tags optionally. When a feature branch is created, we want to create nugets with a prerelease version (depeding on the used bump message). This part works. When a feature branch is merged back to master, a pipeline runs which releases the nuget (master = release branch) with the full version. Problem scenario:
My understanding is this is because the bump messages on master do not count as a version source. It thinks "there are two minor changes on top of 1.0.0, so 1.1.0 should be fine to describe both changes". How can I signal that 1.1.0 is already released, and can be used as a base version, WITHOUT USING A TAG (we want the process to be fully automated) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please try the following workflow: TrunkBased/preview1 Please notice that the merge no fast forward option needs to be used when merging from the feature to the main branch (the merge message needs to contain the source branch). |
Beta Was this translation helpful? Give feedback.
Please try the following
TrunkBased
workflow configuration (gitversion.yaml):Please notice that the merge no fast forward option needs to be used when merging from the feature to the main branch (the merge message needs to contain the source branch).