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

feat(version): Allow for prereleases flags and prerelease identifiers #7336

Merged
merged 3 commits into from
Jun 13, 2019
Merged

feat(version): Allow for prereleases flags and prerelease identifiers #7336

merged 3 commits into from
Jun 13, 2019

Conversation

daniseijo
Copy link
Contributor

@daniseijo daniseijo commented Jun 13, 2019

Summary

This pull request implements the feature requested in #6059 and #5367

It adds four new flags (--premajor|--preminor|--prepatch|--prerelease) to allow automatic increment of new prereleases.

It also adds a new flag --preid to add a custom identifier to the new prerelease

Test plan

Example:

$ yarn version --premajor --preid beta
info Current version: 1.3.0
info New version: 2.0.0-beta.0

I've included Jest test cases for each of the new versioning flags.

This feature only adds new flags and should not modified the previous behaviour of version.

@arcanis
Copy link
Member

arcanis commented Jun 13, 2019

That seems good to me - can you update the changelog (at the root of the repository) before I merge it?

@daniseijo
Copy link
Contributor Author

There you have it!

@buildsize
Copy link

buildsize bot commented Jun 13, 2019

File name Previous Size New Size Change
yarn-[version].noarch.rpm 1.18 MB 1.18 MB 52 bytes (0%)
yarn-[version].js 4.85 MB 4.85 MB 953 bytes (0%)
yarn-legacy-[version].js 5.04 MB 5.04 MB 953 bytes (0%)
yarn-v[version].tar.gz 1.18 MB 1.18 MB 2.23 KB (0%)
yarn_[version]all.deb 868.28 KB 868.34 KB 62 bytes (0%)

@arcanis arcanis merged commit 8a60e21 into yarnpkg:master Jun 13, 2019
@bodinsamuel
Copy link

bodinsamuel commented Jul 28, 2019

Great feature 🙌
It's not documented in the website though !

VincentBailly pushed a commit to VincentBailly/yarn that referenced this pull request Jun 10, 2020
…yarnpkg#7336)

* Complete semver versioning flags with prereleases and preid

* Update CHANGELOG
VincentBailly pushed a commit to VincentBailly/yarn that referenced this pull request Jun 10, 2020
…yarnpkg#7336)

* Complete semver versioning flags with prereleases and preid

* Update CHANGELOG
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.

3 participants