CI: improve caching for prod mode install

This commit is contained in:
Mike Cooper 2019-01-23 13:58:26 -08:00
Родитель af6ff032ac
Коммит 91cb0f5fd6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9424CEA6F89AB334
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -133,9 +133,11 @@ jobs:
# Download and cache node dependencies
- restore_cache:
keys:
- v2-dependencies-prod-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-prod-
# Include package.json in the keys, since moving between
# dependencies and devDependncies doesn't change yarn.lock.
- v2-dependencies-prod-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-prod-{{ checksum "package.json" }}-
- run:
name: Install node dependencies in production mode
@ -144,7 +146,7 @@ jobs:
- save_cache:
paths:
- "node_modules"
key: v2-dependencies-prod-{{ checksum "yarn.lock" }}
key: v2-dependencies-prod-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
- run:
name: Build