setup: use 1 thread on CI

This commit is contained in:
Abdullah Atta
2023-12-26 15:27:23 +05:00
parent bd39f0cbf8
commit 58db265702

View File

@@ -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",