Perform an alpha version change only when versionable commit is present. #385
Replies: 4 comments 6 replies
-
Hello, I think it's definitely a great feature, I also face this need in another project. I like your suggestion as well, let's do this! |
Beta Was this translation helpful? Give feedback.
-
As an aside, my second alternate idea mostly works...
But it runs into an issue when switching from tag prefix to tag prefix, where each time you switch it results in a patch bump. For example, if I run...
... where the first command has an expected version bump, each of the following commands will cause patch bumps. Perhaps this is related to #374? I will mention this behavior in said issue, but I wanted to also mention it here. |
Beta Was this translation helpful? Give feedback.
-
Hey @CaffeinatedCodeMonkey , this is an interesting issue. The way I see it is that there |
Beta Was this translation helpful? Give feedback.
-
I think a FAQ answering @edbzn 's questions could be helpful:
|
Beta Was this translation helpful? Give feedback.
-
I have a feature suggestion, based on a situation I'm running into.
Scenario:
I have an upper and lower pipeline for my applications, where the upper pipeline receives version updates based on conventional commits, and the lower receives alpha versions. With the upper pipeline, a new version and subsequent deployment via postTargets only occurs when there has been a versionable change. In contrast, the lower pipeline always receives a new alpha version, regardless of whether it contains a versionable change, due to calling it with
--preid alpha --releaseAs prerelease
. This increases the number of deployments that occur in non-release environments.Suggestion:
Make the
--preid
argument independently usable, where, without being used in conjunction with--releaseAs
, it will only apply a new version with a preid when there is a versionable change.Current Alternatives:
The other approaches I've tried/considered are:
affected
instead ofrun-many --all
when versioning, which mitigates the issue, but does not account for non-versionable commits or when an unchanged project shows up in the dependency graph.--preid
and--releaseAs
, which would get the desired deployment behavior, but would likely result in release and non-release builds with versions that are indistinguishable.I have other ideas to approach the issue, but they mostly get more elaborate, which I'd like to avoid. Of course, if there's already a way to achieve the desired result, and I've just passed right over it, please let me know!
Beta Was this translation helpful? Give feedback.
All reactions