How to update many package version and push to git concurrentl #1789
-
New feature motivationSo i'm doing a development using lerna monorepo. In our repo, lets say we have 2 packages: --packages Then in each package, this is my chart
ui
So as you can see, here i use commit analyzer to pick out the correct scope for the current releasing package, then release it to npm and push new version in package.json to git. So there is no problem if the pipeline only release 1 package. If 2 packages release at the same time, the later package will fails, because it cannot push new version to git. The reason is because the former one already pushed and update the git head to new head, making the later one fails. Is there anyway to implement concurrent publish/ git push. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
semantic-release provides no official support for packages managed within monorepos. the types of complexities that you describe are along the lines of the reasons why we have not added support for this structure. there are some tools that add support for specific approaches for managing packages withing a monorepo on top of semantic-release, but support for those additional tools is provided by their maintainers, and not the core team here. one that i have used with success in a lerna mnaaged monorepo is semantic-release-monorepo. however, even that one recommends running against the multiple packages serially. |
Beta Was this translation helpful? Give feedback.
semantic-release provides no official support for packages managed within monorepos. the types of complexities that you describe are along the lines of the reasons why we have not added support for this structure.
there are some tools that add support for specific approaches for managing packages withing a monorepo on top of semantic-release, but support for those additional tools is provided by their maintainers, and not the core team here. one that i have used with success in a lerna mnaaged monorepo is semantic-release-monorepo. however, even that one recommends running against the multiple packages serially.