mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Check for changes on package-lock.json and exit with error
This commit is contained in:
parent
38e54af093
commit
c567a4b8f3
@ -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" }}
|
||||
|
Loading…
Reference in New Issue
Block a user