Skip to content

Instantly share code, notes, and snippets.

View IOAyman's full-sized avatar
🏠
Working from home

Ayman Nedjmeddine IOAyman

🏠
Working from home
View GitHub Profile
@IOAyman
IOAyman / readme.md
Last active December 11, 2017 04:58 — forked from maxrimue/readme.md
Use yarn with Greenkeeper

Use yarn with Greenkeeper

When using yarn, it will create a yarn.lock lockfile which holds data on your used dependencies. This file also includes hard-typed versions, so should you update your dependencies, the yarn.lock file is basically outdated and needs to be regenerated. While yarn does this automatically, Greenkeeper pull requests that update dependencies as of right now do not do this regeneration, which means you would have to do it manually.

This gist shows you a way how to automatise this step using a Travis CI script.

Prerequisites

  • You use Travis CI and have it build Pull Requests (default behaviour)
  • You have a yarn.lock file in your repository for Travis CI to automatically install yarn (yarn will be added to their default images soon)

Getting started