Using Yarn with CircleCI and Heroku

Eric Kryski
The Bull Pen
Published in
1 min readOct 14, 2016

Switching over to Yarn has shaved minutes off our build times on even modest apps but more than that the Yarn.lock lockfile ensures that any sub-sub-sub-sub-sub-sub dependencies won’t break our builds and block our deployments.

Here’s how you can quickly use Yarn with CircleCI and deploy an app to Heroku.

  1. Create your apps on Heroku

2. Login to CircleCI and set up your repo to track the correct git branches if you haven’t already.

3. Set the yarn heroku buildpack for your app:

heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs#yarn — app your-staging-app

4. Simply create your circle.yml file as below and push to Github.💥

Happy deploying!

--

--

Eric Kryski
The Bull Pen

Computer & data scientist, partner @bullishventures, creator of @feathersjs, co-founder of bidali.com. Passionate about data and transparency in finance.