Last active
April 13, 2017 17:28
-
-
Save effervescentia/5d89a54d602865e70a60fcca3a53ebcf to your computer and use it in GitHub Desktop.
CircleCI v2 Yarn Configuration
This file contains 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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/my-github-project | |
docker: | |
- image: kkarczmarczyk/node-yarn | |
steps: | |
- checkout | |
- restore_cache: | |
key: my-github-project-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }} | |
- run: | |
name: Install | |
command: yarn | |
- save_cache: | |
key: my-github-project-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }} | |
paths: | |
- ~/node_modules | |
- run: | |
name: Test | |
command: yarn test | |
- run: | |
name: Release | |
command: yarn run release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure to replace
my-github-project
with the name of your project