-
Notifications
You must be signed in to change notification settings - Fork 2.3k
lerna version --force-publish does not update all packages in yarn workspace #3727
Description
Hello there,
we have an yarn workspace with multiple packages:
- base
- main
- fiori
.... - tools
Link to the project repo: https://github.com/SAP/ui5-webcomponents/
and we rely on lerna for our project release. It works fine and it's very useful, however we faced unexpected behaviour that I hope you can help us with. We want to synchronise our packages' versions and we use the --force-publish parameter to do so.
Current Behavior
Currently, we run
yarn lerna version 1.14.2 --conventional-graduate --force-publish --yes --exact --create-release github
yarn lerna publish from-git --yesbut sometimes not all packages' version are updated - some of them are updated to the new patch/minor, some of them remain on the version before running the commands. In the latest case all the packages but one were updated to 1.14.2 - one of them remained on 1.14.1
Expected Behavior
When running
yarn lerna version 1.14.2 --conventional-graduate --force-publish --yes --exact --create-release github
yarn lerna publish from-git --yeswe expect all the packages to be bumped to 1.14.2 even without changes.
Steps to Reproduce
Locally it seems to work properly, so it might be related to the environment. It happens on GitHub actions (provided the environment details below), so I don't have a minimal reproducible example, but I hope that you might have seen this in the past and connect it somehow to the environment that we have.
Failure Logs / Configuration
Link to the log of the GitHub action
https://github.com/SAP/ui5-webcomponents/actions/runs/5241010719/jobs/9462553912
I post a screenshot of the log just in case. The screenshot shows the commands being executed and the packages that are updated - just one is missing the tools, it is not updated to 1.14.2.
The command executed is
yarn lerna version 1.14.2 --conventional-graduate --force-publish --yes --exact --create-release github
Link to the lerna.json https://github.com/SAP/ui5-webcomponents/blob/release-1.14.2/lerna.json
Environment
- Operating System Ubuntu 22.04.2 LTS
- git version 2.40.1
- yarn 1.22.19
- node 16.20.0
- lerna v6.6.1