Increase cache key search for Circle

This commit is contained in:
Adam Miskiewicz
2017-05-15 21:51:51 -07:00
parent 4074a389f2
commit 49ef70db90

View File

@@ -8,7 +8,11 @@ jobs:
steps:
- checkout
- restore_cache:
key: v2-react-navigation-{{ .Branch }} # generate cache per branch
# cache by branch + package.json, by branch, and then master
keys:
- v2-react-navigation-{{ .Branch }}-{{ checksum "package.json" }}
- v2-react-navigation-{{ .Branch }}
- v2-react-navigation-master
- run: yarn # install root deps
- run: ./scripts/test.sh # run tests
- deploy:
@@ -24,7 +28,7 @@ jobs:
# cd examples/NavigationPlayground && exp publish
fi
- save_cache:
key: v2-react-navigation-{{ .Branch }} # generate cache per branch
key: v2-react-navigation-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ~/.cache/yarn
- ~/react-navigation/website/node_modules