Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

setup: use 1 thread on CI

Abdullah Atta58db26570229
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",