Skip to content

Instantly share code, notes, and snippets.

@effervescentia
Last active April 13, 2017 17:28
Show Gist options
  • Save effervescentia/5d89a54d602865e70a60fcca3a53ebcf to your computer and use it in GitHub Desktop.
Save effervescentia/5d89a54d602865e70a60fcca3a53ebcf to your computer and use it in GitHub Desktop.
CircleCI v2 Yarn Configuration
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
@effervescentia
Copy link
Author

Make sure to replace my-github-project with the name of your project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment