use tarball for node_modules artifact
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
03918f9443
commit
59df4a7af8
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue