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

Prerelease version vs release version #459

Open
iamstiil opened this issue Mar 4, 2022 · 2 comments
Open

Prerelease version vs release version #459

iamstiil opened this issue Mar 4, 2022 · 2 comments
Labels
question Further information is requested

Comments

@iamstiil
Copy link

iamstiil commented Mar 4, 2022

Hi,

when I run nx run components:version --dryRun --trackDeps I get the bump from 0.1.1 to 1.0.0.
But when I run nx run components:version --dryRun --trackDeps --releaseAs prerelease --preid next I get the bump from 0.1.1 to 0.1.1-next.0, but shouldn't it be 1.0.0-next.0?

@edbzn edbzn added the question Further information is requested label Mar 18, 2022
@edbzn
Copy link
Member

edbzn commented Mar 18, 2022

Hi @iamstiil, the 0.1.1-next.0 is a correct prerelease version for 0.1.1. If you want to bump the version up to the next major version and down to a prerelease of that major version you can use --releaseAs premajor --preid next.

@kstott
Copy link

kstott commented Sep 24, 2022

Similar comment.....if I have successfully created a pre-release version of e.g. 1.0.0-next.0, if I then bump with a --releaseAs premajor --preid next it tells me it cannot find the version tag and attempts to tag again as 1.0.0-next.0 which fails because the tag already exists.

But - if I were to use --releaseAs prerelease --preid next it will find the tag and generate it as 1.0.0-next.1 with no error.

And - If I were to use --releaseAs preminor --preid next I would expect it to bump to 1.1.0-next.0 but again it says it cannot find the tag and instead bumps it to 0.1.0-next.0. Which succeeds, but is not what I was expecting.

Am I doing something wrong?

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

No branches or pull requests

3 participants