mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 17:23:18 +08:00
Increase cache key search for Circle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user