From ae8531fe11fb6c543c59b4bb8ac8123a9cecb60a Mon Sep 17 00:00:00 2001 From: Sung Won Cho Date: Sat, 25 Apr 2020 15:24:33 +1000 Subject: [PATCH] Speed up ci (#451) --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0230b245..e76f35a3 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,10 @@ endif @echo "==> installing js dependencies" ifeq ($(CI), true) - @(cd ${currentDir} && npm install --unsafe-perm=true) - @(cd ${currentDir}/web && npm install --unsafe-perm=true) - @(cd ${currentDir}/browser && npm install --unsafe-perm=true) - @(cd ${currentDir}/jslib && npm install --unsafe-perm=true) + @(cd ${currentDir} && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) + @(cd ${currentDir}/web && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) + @(cd ${currentDir}/browser && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) + @(cd ${currentDir}/jslib && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) else @(cd ${currentDir} && npm install) @(cd ${currentDir}/web && npm install)