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 publish fails with lerna 3 and canary option #6313

Open
fczuardi opened this issue Aug 27, 2018 · 2 comments
Open

yarn publish fails with lerna 3 and canary option #6313

fczuardi opened this issue Aug 27, 2018 · 2 comments
Assignees
Labels

Comments

@fczuardi
Copy link

yarn v1.9.4

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

Report a bug.

What is the current behavior?
When using lerna to handle the publishing of multiple packages in a monorepo, using yarn as the npm client, the command lerna publish --canary fails with a New versions must be valid semver error.

The format for such versions are similar to 3.0.36-alpha.36+fca8d96

Here is an example of travis build failing to publish:

https://travis-ci.org/CraveFood/farmblocks/builds/421141905#L2513

lerna ERR! yarn publish --ignore-scripts --tag canary --new-version 3.0.36-alpha.36+fca8d96 --non-interactive crave-farmblocks-alert-3.0.36-alpha.36.tgz stderr:
error Couldn't publish package: "https://registry.npmjs.org/@crave%2ffarmblocks-alert: New versions must be valid semver."

If using npm as the client the publishing works.

lerna publish --canary --npm-client npm

@kevinwolfcr
Copy link

Any solution for this?

@stephanepericat
Copy link

any updates ? still not working properly as of yarn 1.12.3

andrew-codes added a commit to versionone/component-library that referenced this issue Dec 14, 2018
smithad15 added a commit to angular-redux/platform that referenced this issue Jan 8, 2019
smithad15 added a commit to angular-redux/platform that referenced this issue Jan 8, 2019
smithad15 added a commit to angular-redux/platform that referenced this issue Jan 8, 2019
smithad15 added a commit to angular-redux/platform that referenced this issue Jan 8, 2019
johno added a commit to mdx-js/mdx that referenced this issue Mar 5, 2019
johno added a commit to mdx-js/mdx that referenced this issue Mar 5, 2019
smithad15 added a commit to angular-redux/platform that referenced this issue May 4, 2019
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

4 participants