aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Barbieri <bruno.barbieri@consensys.net>2018-07-07 02:38:01 +0800
committerGitHub <noreply@github.com>2018-07-07 02:38:01 +0800
commitc567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce (patch)
tree921a9b84235e3ef8c9edee48362086783e6c4b67
parent38e54af0930cf486cd1a68dfbccfe0e710ec7d9a (diff)
downloadtangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.tar
tangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.tar.gz
tangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.tar.bz2
tangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.tar.lz
tangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.tar.xz
tangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.tar.zst
tangerine-wallet-browser-c567a4b8f3d81c9e8f8fe6f9795e57d5b57bdcce.zip
Check for changes on package-lock.json and exit with error
-rw-r--r--.circleci/config.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index e7ce09371..401e3b309 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -108,6 +108,11 @@ jobs:
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
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}