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)