Skip to content

Commit

Permalink
chore(ci): tweak cache config
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Sep 18, 2019
1 parent 6578cbc commit f577d58
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
version: 2

references:
js_deps_cache_key: &js_deps_cache_key v8-dependency-js-deps-{{ checksum "yarn.lock" }}
js_deps_backup_cache_key: &js_deps_backup_cache_key v8-dependency-js-deps

jobs:
build:
docker:
- image: circleci/node:12.10.0
working_directory: /tmp/workspace
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
keys:
- *js_deps_cache_key
- *js_deps_backup_cache_key
- run:
name: Install dependencies
command: yarn --pure-lockfile
Expand All @@ -23,3 +31,9 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules

workflows:
version: 2
build-deploy:
jobs:
- build

0 comments on commit f577d58

Please sign in to comment.