From cb7f432b9a3be9a3adbe6dbb2e512ba62e252dbf Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 26 Dec 2023 15:27:23 +0500 Subject: [PATCH] setup: use 1 thread on CI --- scripts/bootstrap.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap.mjs b/scripts/bootstrap.mjs index 3774f0911..3ca14267f 100644 --- a/scripts/bootstrap.mjs +++ b/scripts/bootstrap.mjs @@ -25,9 +25,11 @@ import parser from "yargs-parser"; import { fdir } from "fdir"; import Listr from "listr"; -const THREADS = Math.max(4, process.env.THREADS || os.cpus().length / 2); const args = parser(process.argv, { alias: { scope: ["s"], offline: ["o"] } }); const IS_CI = process.env.CI; +const THREADS = IS_CI + ? 1 + : Math.max(4, process.env.THREADS || os.cpus().length / 2); const scopes = { mobile: "apps/mobile", web: "apps/web",