Skip to content

Conversation

@ClementValot
Copy link
Contributor

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.

@arcanis arcanis merged commit a278f52 into yarnpkg:master Aug 26, 2025
26 checks passed
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

2 participants