Skip to content

Conversation

@gagik
Copy link
Contributor

@gagik gagik commented Feb 25, 2025

There seems to be a bug where lerna does not run prepublish topologically during the publish step, causing build errors. This ensures all packages are topologically compiled beforehand.

I tried different ways of forcing on lerna, including updating it, and could not come up with a better solution.

Steps to Reproduce Locally:

  1. Get a clean repository of mongosh or cleanup the builds of i.e. rm -rf packages/errors/lib
  2. Run npm_config_dry_run=true npx lerna publish from-package --no-private --no-changelog --exact --yes --sort
  3. Some packages which depend on @mongosh/errors i.e. @mongosh/service-provider-core fail as their prepublish gets called before the errors. The --sort tag doesn't help.

@gagik gagik added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Feb 25, 2025
@gagik gagik merged commit 4a09f59 into main Feb 25, 2025
53 of 59 checks passed
@gagik gagik deleted the gagik/fix-ci branch February 25, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants