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
Unable to force-publish canary for all packages in lerna v3 #1638
Comments
I'm not sure why you need to |
@evocateur I'm trying to publish a canary version for all packages under the workspace (regardless of the changes in the packages). It worked in v2, but since v3 it's no longer works... |
@evocateur I've run into a similar issue because changes outside of the individual package folders (repo-global typescript configuration for example) were not considered when lerna was checking if anything has changed since the last release. There is a lot outside of the package folders that has an influence on the resulting npm release. Examples include: the nodejs version, globally installed typescript, and even lerna itself! So it'd be nice if there was an easy way to force a canary build regardless of the git history that's affecting one particular folder. Ideally lerna would run everything up to creating the tgz and check if its checksum is different then the previous release on npmjs.com. |
@dotansimha Yes, I realized that it's actually because we're not passing I'm not entirely comfortable with where |
@wereHamster Checksum diffing is way out of scope for Lerna itself. Since v3.2.0 there is support for a root Changes external to a package aren't the concern of lerna for the same reason they're not a concern of npm: there's literally no way to do that without specific domain knowledge of an individual environment/ecosystem. |
@evocateur if reliable detection of changes is out of lerna's scope, it should provide a flag so that users can force the publishing. I'd like to publish "canary" releases on each push into my github repo (so that every commit is available for download from npmjs.com), regardless of whether lerna believes that a release is warranted or not. |
@wereHamster Sure, fine. PRs accepted. |
Thanks! :D |
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. |
Since version 3, i'm unable to publish canary versions. It says that there are no git changes.
The log is:
With 2.11.0 it works.
Expected Behavior
Should work the same?
Current Behavior
Publish does not work, and I couldn't find a way to bypass the changes check.
Possible Solution
Maybe it's related to a change in
force-publish
behaviour?Steps to Reproduce (for bugs)
--ignore-changes="*"
- it's still doesn't work...lerna.json
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: