Skip to content

CICD-388 · Parallel package builds ​

Encyclopedia · Monorepo and large-scale build engineering · All snippets

Previous · CICD-387 · Next · CICD-389

1. Where it fits ​

  • Placement CI run step.
  • Prerequisites trusted checkout with the base ref fetched and pinned package manager or build tool.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
pnpm -r --workspace-concurrency=4 run build

3. How it works ​

pnpm runs the named script for the workspace packages while limiting concurrent work. Declared dependency edges still control what can execute first.

4. Verify the result ​

Per-workspace scripts should be independent except for declared dependencies. Confirm memory use at the chosen concurrency.

Validation syntax-validated (Bash parse). Status definitions.