Skip to content
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

Fix prerelease continuation increased patch version in CI mode #715

Merged
merged 2 commits into from Oct 31, 2020

Conversation

pstrh
Copy link
Contributor

@pstrh pstrh commented Oct 26, 2020

@webpro This PR tries to solve #714 - which I've introduced via #707

Problem was that the 'patch' default in the CI mode previously did not had an effect in a prerelease continuation scenario. With #707 the default patch increment is applied.

To solve this the prelease shortcut has to be detected first. Only if it's not the prerelease shortcut the increment can be set to 'patch' in CI mode. To be able to implement this evaluation order I added a optional isCI flag to the incrementVersion method.

I also added some additional tests to verify the fix.

@pstrh
Copy link
Contributor Author

pstrh commented Oct 26, 2020

Seems that I've broken some tests will have a look into it tomorrow.

test/plugins.js Show resolved Hide resolved
@webpro webpro merged commit 3021d18 into release-it:master Oct 31, 2020
@webpro
Copy link
Collaborator

webpro commented Oct 31, 2020

Thanks for the fix, @pstrh! I did some more testing and refactored a bit, this is now in 14.2.1.

@pstrh pstrh deleted the issue-714 branch November 2, 2020 07:50
@pstrh
Copy link
Contributor Author

pstrh commented Nov 2, 2020

@webpro Couldn't look into this until now. Thank you for finisihing and merging this PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants