Skip to content

Instantly share code, notes, and snippets.

@ekryski
Last active October 28, 2022 14:46
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ekryski/be648bf1477082e9dbe2f1cd72062972 to your computer and use it in GitHub Desktop.
Save ekryski/be648bf1477082e9dbe2f1cd72062972 to your computer and use it in GitHub Desktop.
Using Yarn with CircleCI and Heroku
machine:
pre:
- mkdir ~/.yarn-cache
node:
version: stable
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
cache_directories:
- ~/.yarn-cache
override:
- yarn install
test:
override:
- yarn test
deployment:
production:
branch: master
heroku:
appname: your-production-app
staging:
branch: staging
heroku:
appname: your-staging-app
@heddn
Copy link

heddn commented Apr 7, 2017

Why can't circle give me an option to make sure I have yarn installed? I don't know. But this worked.

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