Created
November 15, 2017 23:45
-
-
Save export-mike/f1ec69b4103ba8dbc90024b72d7735ee to your computer and use it in GitHub Desktop.
circleCI yarn cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- checkout | |
- restore_cache: | |
keys: | |
# Find a cache corresponding to this specific yarn.lock checksum | |
# when this file is changed, this key will fail | |
- v1-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
- run: | |
name: install-yarn | |
command: npm install -g [email protected] | |
- run: | |
name: yarn-install | |
command: yarn | |
- save_cache: | |
key: v1-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
paths: | |
- node_modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment