-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Invalid version number when publishing as canary for the first time #1614
Comments
Or, as it turns out, a tag that it was not able to locate. Such as when an independently-versioned package has not been previously published. So that's definitely a bug. |
I was just expirimenting with the options so maybe some of them do not make sense as you described. Thanks for all the info regarding the options. To answeryour question, package.json has version: 1.0.0 |
Ah, yes, that makes sense. I think I have a fix, validating it right now... |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm trying to create a new package in my repository but when I try to publish a canary/next version I get an invalid version. "ERR! Invalid version: "null-alpha.NaN+ab983f0"". I might be doing something wrong as I'm using @lerna/publish directly in code. Also it is worth mentioning that I'm using independent versioning and this package has not been published before.
Expected Behavior
Version number for the new package should be something like: 1.0.0-alpha.next+ab983f0
lerna.json
Context
The repository was created with lerna v2 but we are working on updating and changing a lot of other stuff
Your Environment
lerna --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: