mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Run npm install only when needed
This commit is contained in:
parent
d9c78fc645
commit
af04ca59e9
@ -108,7 +108,10 @@ jobs:
|
||||
- run:
|
||||
name: Install deps via npm
|
||||
command: |
|
||||
sudo npm install -g npm@6
|
||||
# Only run npm install if the package-lock.json or package.json was changed
|
||||
CHANGED_FILES="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
|
||||
echo "$CHANGED_FILES" | grep --quiet "package.*json" &&
|
||||
sudo npm install -g npm@6 &&
|
||||
npm install
|
||||
- save_cache:
|
||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||
|
Loading…
Reference in New Issue
Block a user