From 59df4a7af8d945df017a4e4428a5f409dc3b9a78 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Mon, 21 Feb 2022 11:28:47 -0700 Subject: [PATCH] use tarball for node_modules artifact Signed-off-by: Travis Glenn Hansen --- ci/bin/build.sh | 1 + ci/bin/run.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ci/bin/build.sh b/ci/bin/build.sh index 49ca883..84e3e17 100755 --- a/ci/bin/build.sh +++ b/ci/bin/build.sh @@ -6,3 +6,4 @@ set -x export PATH="/usr/local/lib/nodejs/bin:${PATH}" # install deps npm i +tar -zcvf node_modules.tar.gz node_modules diff --git a/ci/bin/run.sh b/ci/bin/run.sh index 1dcda9a..f1d4523 100755 --- a/ci/bin/run.sh +++ b/ci/bin/run.sh @@ -14,6 +14,10 @@ trap _term EXIT export PATH="/usr/local/lib/nodejs/bin:${PATH}" # install deps #npm i +# install from artifacts +if [[ -f "node_modules.tar.gz" ]];then + tar -zxvf node_modules.tar.gz +fi # generate key for paths etc export CI_BUILD_KEY=$(uuidgen | cut -d "-" -f 1)