Using Yarn with CircleCI and Heroku
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.
- 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!