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.
14 lines
351 B
14 lines
351 B
#!/bin/bash
|
|
|
|
# shellcheck disable=SC1091
|
|
source scripts/hash-utils.sh
|
|
|
|
PACKAGE_JSON_HASH=$(md5sum package.json | cut -d ' ' -f 1)
|
|
CACHED_PACKAGE_JSON_HASH=$(GET_HASH 'package.json')
|
|
|
|
if [ "$CACHED_PACKAGE_JSON_HASH" == "$PACKAGE_JSON_HASH" ]; then
|
|
echo "> Skipping yarn install"
|
|
else
|
|
yarn install
|
|
SET_HASH 'package.json' "$PACKAGE_JSON_HASH"
|
|
fi
|
|
|