From 5a5d570bf39897caddd077fe314edf897f61df61 Mon Sep 17 00:00:00 2001 From: MrNaif2018 Date: Tue, 1 Jun 2021 21:28:31 +0300 Subject: [PATCH] Use branch in CI cache name --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a3deddc..03e87f1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,16 +22,16 @@ jobs: # Download and cache dependencies - restore_cache: keys: - - v1-dependencies-{{ checksum "package.json" }} + - v2-dependencies-{{ checksum "package.json" }}-{{ .Branch }} # fallback to using the latest cache if no exact match is found - - v1-dependencies- + - v2-dependencies- - run: yarn install - save_cache: paths: - node_modules - key: v1-dependencies-{{ checksum "package.json" }} + key: v2-dependencies-{{ checksum "package.json" }}-{{ .Branch }} - run: yarn lint # run tests!