Lerna does not correctly detect packages change during running workflow of Github actions.
If I make none packages related changes, commit and runlerna up
After hours of debugging. I found the answer myself and thanks to @peterevans for the tip
You have to combine both
so that all git history and tag are exposed to lerna.
Wow - cannot believe that I've finally found a fix to the same issue - huge thanks!
I see this as a big issue with github actions (specifically @actions/checkout), and thus I've informed them here: https://github.com/actions/checkout/issues/217
I've also informed the lerna
folks here: https://github.com/lerna/lerna/issues/2542
and semantic-release
people here: https://github.com/semantic-release/semantic-release/issues/1526
Thanks again! You've helped me save a lot of time & fix an annoying issue, and I hope I'll help others with this too. Cheers
There is also the option include-merged-tags
So this should also solve the problem:
lerna updated --include-merged-tags
or for publishing:
lerna publish --include-merged-tags