From ab747038415ea189f7ef791e96824f53f475afed Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Sun, 11 Jun 2017 17:37:06 -0400 Subject: [PATCH] ci(): change cache key for ionic-site repo CircleCI can only save files one to a specific cache key. I set the cache key to depend on the checksum of package.json, so it updates the cache every time we update Ionic Native. In the long run, CircleCI will have to download the ionic-site changes less often. --- circle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index 4533e4242..8dcd1e3fa 100644 --- a/circle.yml +++ b/circle.yml @@ -7,7 +7,7 @@ jobs: steps: - checkout - restore_cache: - key: ionic-site-{{ .Branch }} + key: ionic-site-{{ checksum "package.json" }} - run: name: Prepare ionic-site repo command: | @@ -15,7 +15,7 @@ jobs: ./scripts/docs/prepare.sh fi - save_cache: - key: ionic-site-{{ .Branch }} + key: ionic-site-{{ checksum "package.json" }} paths: - ~/ionic-site/ - restore_cache: