1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

simpler approach

This commit is contained in:
Bruno Barbieri 2018-07-06 15:15:23 -04:00 committed by GitHub
parent a875caa20c
commit d9c78fc645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,15 +108,8 @@ jobs:
- run:
name: Install deps via npm
command: |
if [ ! -d node_modules ]; then
sudo npm install -g npm@6
npm install
# If the package-lock.json has changed, die with an error
CHANGED_FILES="$(git diff --name-only package-lock.json)"
echo "$CHANGED_FILES" | grep --quiet "package-lock.json" &&
echo "Looks like package-lock.json has changed. Did you forget to include it on your PR?" &&
exit
fi
sudo npm install -g npm@6
npm install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths: