CCI: cache based on package.json

This commit is contained in:
ziajka 2018-04-06 08:24:20 +02:00
parent 23d8740782
commit 9ea42966d3

View File

@ -16,11 +16,7 @@ jobs:
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-packages-{{ .Branch }}
- yarn-packages-master
- yarn-packages-
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install project
@ -32,9 +28,10 @@ jobs:
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules/
- ~/.cache/yarn
- ./node_modules
- run:
name: Building WebUI for distribution