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: Combining both release-as and prerelease now doesn't break package #8

Merged
merged 1 commit into from
May 25, 2022

Conversation

TimothyJones
Copy link
Member

@TimothyJones TimothyJones commented May 25, 2022

Copy of conventional-changelog#767 , fixes conventional-changelog#542

BEGIN_COMMIT_OVERRIDE
fix: Combining both release-as and prerelease now doesn't break package
END_COMMIT_OVERRIDE


Previously, as shown in conventional-changelog#542, using both options at the same time resulted in the bump file's version being set to null.

This was validated in the first of the new unit tests. The other unit tests simply check that the rest of the behavior is correct in this case.

With this combination the user can override the version, the purpose of release-as, while still starting or continuing a pre-release, the purpose of of the prerelease.

Fixes conventional-changelog#542

Previously, as shown in conventional-changelog#542, using both options at the same time resulted in the bump file's version being set to null.

This was validated in the first of the new unit tests. The other unit tests simply check that the rest of the behavior is correct in this case.

With this combination the user can override the version, the purpose of `release-as`, while still starting or continuing a pre-release, the purpose of of the `prerelease`.

Fixes conventional-changelog#542
@TimothyJones TimothyJones merged commit 5ecfa2e into absolute-version:master May 25, 2022
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.

Using both prelease and release-as parameters, the version number becomes null
2 participants