You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use pre-release versions (as defined in Semantic Versioning) for the work-in-progress code.
Here's my version flow visualized:
flowchart TD
A(1.1.0) -->|1. Start the next work-in-progress version| B(1.2.0-pre)
B -->|Add features| B
B --> C{Major release?}
C -->|2a. Release next major version| D1(2.0.0)
C -->|2b. Release next minor version| D2(1.2.0)
D1 -->|3a. Start the next work-in-progress version| E1(2.1.0-pre)
D2 -->|3b. Start the next work-in-progress version| E2(1.3.0-pre)
Loading
Steps 1, 3a and 3b can be done with mix bump minor --pre pre.
Step 2a can be done with mix bump major.
My problem is that I couldn't find a way to implement step 2b with Versioce. The best I could achieve was mix bump minor, but that skips a whole minor version altogether: 1.2.0-pre -> 1.3.0.
According to Semantic Versioning a pre-release version comes before a normal one:
When major, minor, and patch are equal, a pre-release version has lower precedence than a normal version:
Example: 1.0.0-alpha < 1.0.0.
Therefore a transition from 1.2.0-pre to 1.2.0 is technically a version bump.
It would be nice to be able to do this with Versioce without resorting to shell scripting.
I'd give it a try implementing this myself, but I need advice how would you like the CLI command for such a case to look like.
The text was updated successfully, but these errors were encountered:
Use Case
I use pre-release versions (as defined in Semantic Versioning) for the work-in-progress code.
Here's my version flow visualized:
Steps
1
,3a
and3b
can be done withmix bump minor --pre pre
.Step
2a
can be done withmix bump major
.My problem is that I couldn't find a way to implement step
2b
with Versioce. The best I could achieve wasmix bump minor
, but that skips a whole minor version altogether:1.2.0-pre -> 1.3.0
.According to Semantic Versioning a pre-release version comes before a normal one:
Therefore a transition from
1.2.0-pre
to1.2.0
is technically a version bump.It would be nice to be able to do this with Versioce without resorting to shell scripting.
I'd give it a try implementing this myself, but I need advice how would you like the CLI command for such a case to look like.
The text was updated successfully, but these errors were encountered: