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
Encountering No changed packages to publish After Upgrading Lerna and Switching to Independent Versioning #3972
Comments
By the way, my goal for this upgrade was to utilize the |
"If I update Lerna from version 5.5.0 to 6.4.1, it works. But version 7.x+ does not work."
|
I can confirm the issue as well. After some investigation we found that our package was ignored due to it matched a pattern in .gitignore. (Don't ask why we have the package in .gitignore :) ) . If we removed the pattern in .gitignore lerna finds the package (again). The only thing we changed is bumping lerna from 4.x to 8.x Also, Hope that helps. Our workaround is to downgrade lerna |
@ola-adolfsson-ipex It is expected behavior in newer versions of Lerna that packages that are in |
Good to know about the .gitignore. Thanks! We're using kotlin multiplatform and the npm packge is an artifact located in the build map. So, I guess we're not the usual lerna clients. The .gitignored package does not have the private set to true. Maybe the -all argument somehow list all packages regardless of them being gitinogored or not? |
Current Behavior
After merging a PR into the master branch and upgrading Lerna from
5.5.0
to8.1.2
, runninglerna release
on the master branch continuously results in the messagelerna success No changed packages to publish
, despite having newly introduced packages (/types
and/faas
).Expected Behavior
Expected Lerna to detect the newly introduced packages and other changes, and publish them accordingly.
Steps to Reproduce
5.5.0
to8.1.2
.lerna release
on the master branch.lerna success No changed packages to publish
.Potential Causes
Project Link
MinCloudx GitHub Repository
Environment
Environment info:
System:
OS: macOS 13.5.2
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
Utilities:
Git: 2.38.1 - /usr/local/bin/git
npmPackages:
lerna: ^8.1.2 => 8.1.2
Failure Logs / Configuration
log:
The text was updated successfully, but these errors were encountered: