Skip to content

Fix behavior for yarn version pre* to match the docs #6879

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ClementValot
Copy link

What's the problem this PR addresses?

Resolves #5902

The behavior for yarn version prepatch/preminor/premajor and yarn version prerelease did not match the documentation.
Respectively, preminor errored, and prerelease did not bump the prerelease number if used more than once.
...

How did you fix it?

  • prepatch/preminor/premajor were added to the accepted CLI arguments
  • In case of prerelease on an already pre-release version, the semver bump was adapted to bump the current prerelease version instead of the stableVersion

...

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

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.

[Bug?]: yarn version preminor does not work
1 participant