From 46b69ec31cf645f2dd8db6134ee2ffb4220989a3 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Thu, 12 Sep 2019 18:22:52 -0400 Subject: [PATCH] Revert "dont use cache on pre-release (#1082)" This reverts commit ae735a151d8d654bfe49e9f327ab64a1045384be. --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index aecd3b8a62e..6644e9631cf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,13 @@ aliases: + - &restore-cache + keys: + - v1.0.7-{{ .Branch }}-{{ checksum "package.json" }} + - v1.0.7-{{ .Branch }} + + - &save-cache + key: v1.0.7-{{ .Branch }}-{{ checksum "package.json" }} + paths: + - node_modules - &restore-node-cache keys: - v1.0.7-node-{{ .Branch }}-{{ checksum "package.json" }} @@ -23,11 +32,13 @@ jobs: xcode: 10.2.0 steps: - checkout + - restore_cache: *restore-cache - run: *install-node-dependencies - persist_to_workspace: root: . paths: - node_modules + - save_cache: *save-cache prep-node-deps: <<: *defaults docker: