-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect bump version #58
Comments
From what I see in the release-it screenshot, all is as expected/intended. The difference is |
Hello @webpro, thank you for answering. Check this test:
I think that Config {
"git": {
"commitMessage": "chore(release): ${version}",
"push": false
},
"github": {
"release": false
},
"npm": {
"publish": false
},
"gitlab": {
"release": false
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"context": {
"linkCompare": true
},
"infile": "CHANGELOG.md"
}
}
}
|
Hi @webpro, wdyt is the proposition make sense? |
Without I will consider to make |
Cool!!! Are you considering making Otherwise, this first reported bug still exists. -> #58 (comment). |
Still not sure whether there's a bug or I don't understand correctly. What am I missing?
conventional-changelog/test.js Lines 192 to 214 in ff9f1aa
|
Maybe the confusion is about the following. Using the node-semver package here:
When the recommended bump from conventional-changelog is Do you have a resource where it states this should be |
Hello again, thank you for answering. About the test. Let me try to help you with a test that is going to replicate the issue. Test case:
If you run |
I don't have to decide, I expect that the lib take the correct decision for me. I have 2 workflows, one for an official release and another for a pre-release. Official release workflow runs This is why I found the bug, I had experience with standard-version, which bumps correctly, and after some versions using release-it I've noticed that this lib was messing up with the version. |
@webpro |
Hi @webpro, now is clear for you? |
This is the Node.js implementation of semver, node-semver and the semver spec are my main references.
I understand when coming from another tool that behaves differently it may be perceived as incorrect behavior or a bug. But apparently we're both not sure if there are formal rules or any kind of formalization, right? I'm happy to reconsider and change the behavior in this plugin, but not without any backup or explanation as to where the change comes from. |
Closing this, release-it + plugins (and its dependencies) follow |
Thanks for the amazing lib.
I've created a workflow with release-it that mixes pre-release and official release and I found a bug in the default behavior.
release-it is not bumped correctly pre-releases. As you can see in the examples below.
I've used standard-version lib to compare.
Check this test:
As you can see, release-it jumps from official release
1.0.0
to2.0.1
, on the other hand, standard-version does as expected.Version
Config
I have used only the commands :
release-it --ci
for official releaserelease-it --ci --preRelease=alpha
for pre-releaseSimilar command in standard-version
standard-version
for official releasestandard-version --prerelease alpha
for pre-releaseThe text was updated successfully, but these errors were encountered: