Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up--prerelease flag only increase build number #564
Comments
|
afaics it's the standard as defined by semver spec item 7: if you commit a Hence: not a bug ;-) |
|
Yes, however,
What's happenning here?
I'm personally trying to mimic the behavior of |
|
standard-version support all of these use case afaik. |
|
@khatastroffik I don't think it supports this use case:
In words, how can I force bump the major version (for instance) always with |
|
try
|
|
Doesn't work for me:
|
|
ok. Didn't try it (I'm just a standard user, not a contrib :-)).
Otherwise, you may have to call SV twice in a row:
|
|
Haven't tested the first option but it feels like something we don't want to do. As for the second one, tried it, didn't work as simple as that, but this did:
It's a bit complex and verbose but it does the trick for now. I wish there was something simpler like |
|
well.. first, congrats for the solution/workaround ;-) In fact, the first solution I've mentioned is "state-of-the-art", as described in the conventional commit specification (see # 3 in the spec summary):
Note: you can use a footnote with In fact (in context of "conventional commit"): |
I'm well aware of all that but this is a very specific use case. |
.versionrc
git log since last release
npm prereleasescript used to bump up the versionExpected version number =
v1.8.0-rc.0Actual version number =
v1.7.0-rc.1Is anyone else experiencing this? Happened for v1.7 for me as well so I had to manually do a
--release-as.