use tarball for node_modules artifact

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2022-02-21 11:28:47 -07:00
parent 03918f9443
commit 59df4a7af8
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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)