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

yarn version should allow for prerelease identifiers #6059

Open
likesjx opened this issue Jul 2, 2018 · 5 comments
Open

yarn version should allow for prerelease identifiers #6059

likesjx opened this issue Jul 2, 2018 · 5 comments
Assignees
Labels

Comments

@likesjx
Copy link

likesjx commented Jul 2, 2018

Do you want to request a feature or report a bug?

Feature
What is the current behavior?
No way to use version to create specific prerelease identifiers: alpha, beta, rc
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
Would like to be able to add a --preid flag to add/keep/change prerelease identifiers to the updated version. Semver supports them.

Please mention your node.js, yarn and operating system version.

@ConAntonakos
Copy link
Contributor

Would love for this in yarn as well. Maybe this is related or helpful? #5367

@daniseijo
Copy link
Contributor

I've implemented this behaviour similar to how it works on npm. Be free to comment or contrbute on the pull request: #7336

@ahofmeister
Copy link

@daniseijo Is there a way to remove the .0 at the end? Because for our develop branch we use something like this 0.12.0-dev and the next version would be 0.13.0-dev. With yarn version --preminor --preid dev we get 0.13.0-dev.0

@daniseijo
Copy link
Contributor

Hi @ahofmeister, I didn't implement the update of versions myself. I used the default semver library methods. Maybe you should take a look at the Prerelease Identifiers section there and see if they offer a way to avoid the .0 at the end.

@novwhisky
Copy link

The functionality in #7336 appears to have been dropped from Yarn 3

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

No branches or pull requests

6 participants