You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
353 B
15 lines
353 B
7 years ago
|
#!/bin/bash
|
||
7 years ago
|
|
||
7 years ago
|
# shellcheck disable=SC1091
|
||
7 years ago
|
source scripts/helpers/hash.sh
|
||
7 years ago
|
|
||
7 years ago
|
PACKAGE_JSON_HASH=$(md5sum package.json | cut -d ' ' -f 1)
|
||
|
CACHED_PACKAGE_JSON_HASH=$(GET_HASH 'package.json')
|
||
7 years ago
|
|
||
|
if [ "$CACHED_PACKAGE_JSON_HASH" == "$PACKAGE_JSON_HASH" ]; then
|
||
|
echo "> Skipping yarn install"
|
||
|
else
|
||
|
yarn install
|
||
7 years ago
|
SET_HASH 'package.json' "$PACKAGE_JSON_HASH"
|
||
7 years ago
|
fi
|