Skip to content

Instantly share code, notes, and snippets.

@export-mike
Created November 15, 2017 23:45
Show Gist options
  • Save export-mike/f1ec69b4103ba8dbc90024b72d7735ee to your computer and use it in GitHub Desktop.
Save export-mike/f1ec69b4103ba8dbc90024b72d7735ee to your computer and use it in GitHub Desktop.
circleCI yarn cache
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 yarn@v0.24.5
- 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