canonical / ds25

Canonical's design system
GNU Lesser General Public License v3.0
2 stars 1 forks source link

`lerna changed` assumes all packages are changed (non-independent versioning) #44

Open jmuzina opened 4 hours ago

jmuzina commented 4 hours ago

All of our packages are being published on publishing workflows, even if they were not directly or indirectly updated.

Current Behavior

lerna changed, which is used under the hood by lerna version and lerna publish, is outputting all packages as changed even when run just after a publishing action.

➜  ds25 git:(main) bun run lerna changed
$ lerna changed
lerna info Assuming all packages changed
@canonical/biome-config
@canonical/typescript-config-base
@canonical/typescript-config-react
@canonical/ds-react-core
@canonical/styles
@canonical/utils

Expected behavior

jmuzina commented 4 hours ago

Possibly related: https://github.com/lerna/lerna/issues/1357 This behavior seems to deviate from what is suggested in Lerna's docs ("Lerna will only version and publish packages that have changed since the previous release")