From 60c1f80bb2b40fcf8b8e1a558ee5136a2d2aa84a Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Sun, 13 Oct 2024 13:08:11 +0100 Subject: [PATCH] ci: always run turbo with 100% concurrency (#3281) --- .github/actions/build/action.yml | 2 +- .github/workflows/build.yml | 4 ++-- .github/workflows/snapshot.yml | 4 ++-- package.json | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index a770021ecb..08ff3f94da 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -15,7 +15,7 @@ runs: - name: Build shell: bash - run: pnpm turbo run build --cache-dir=.turbo --concurrency 10 + run: pnpm run build --cache-dir=.turbo - name: Outdated files, run `pnpm build` and commit them uses: ./.github/actions/require-empty-diff diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e24b8ae7f..7cbdb269e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,12 +31,12 @@ jobs: - name: Clean if: steps.check_changes.outputs.changes_outside_docs shell: bash - run: pnpm turbo run clean --concurrency 10 + run: pnpm run clean - name: Build if: steps.check_changes.outputs.changes_outside_docs shell: bash - run: pnpm turbo run build --concurrency 10 + run: pnpm run build - name: Outdated files, run `pnpm build` and commit them if: steps.check_changes.outputs.changes_outside_docs diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index bfc8d3f9e8..d560893aaa 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -39,12 +39,12 @@ jobs: - name: Clean shell: bash - run: pnpm turbo run clean --force --concurrency 10 + run: pnpm run clean --force # Build without cache to ensure we release with the most accurate output - name: Build shell: bash - run: pnpm turbo run build --force --concurrency 10 + run: pnpm run build --force # The changesets action doesn't support releasing snapshots (yet), # so doing it manually here diff --git a/package.json b/package.json index 5bc9555cdf..b1f36e8990 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,10 @@ "all-build": "for dir in packages/store packages/world packages/world-modules packages/cli test/mock-game-contracts e2e/packages/contracts examples/*/packages/contracts examples/multiple-namespaces templates/*/packages/contracts; do (cd \"$dir\" && pwd && pnpm build); done", "all-install": "for dir in . docs e2e examples/* templates/*; do (cd \"$dir\" && pwd && pnpm install); done", "bench": "pnpm run --recursive bench", - "build": "turbo run build", + "build": "turbo run build --concurrency=100%", "changelog:generate": "tsx scripts/changelog.ts", - "clean": "turbo run clean", - "dev": "TSUP_SKIP_DTS=true turbo run dev --concurrency 100 --filter !@latticexyz/explorer", + "clean": "turbo run clean --concurrency=100%", + "dev": "TSUP_SKIP_DTS=true turbo run dev --concurrency=100% --filter !@latticexyz/explorer", "dist-tag-rm": "pnpm recursive exec -- sh -c 'npm dist-tag rm $(cat package.json | jq -r \".name\") $TAG || true'", "docs:generate:api": "tsx scripts/render-api-docs.ts", "fix:package-json": "sort-package-json package.json 'packages/*/package.json' 'templates/*/package.json' 'templates/*/packages/*/package.json' 'examples/*/package.json' 'examples/*/packages/*/package.json' 'e2e/*/package.json' 'e2e/*/packages/*/package.json' 'docs/package.json' 'test/*/package.json'",