Skip to content

Instantly share code, notes, and snippets.

@hiroki-uchida
Created October 25, 2017 14:47
Show Gist options
  • Save hiroki-uchida/211049de32d49f9f48ccefd7cc103f18 to your computer and use it in GitHub Desktop.
Save hiroki-uchida/211049de32d49f9f48ccefd7cc103f18 to your computer and use it in GitHub Desktop.
Wercker で Ruby + Node.js + Yarn な環境を作る
# ---
# File: wercker.yml
# ---
box: ruby:2.4.2
build:
steps:
- install-packages:
packages: nodejs npm
- script:
name: install yarn
code: |
ln -s /usr/bin/nodejs /usr/bin/node
npm install -g yarn
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
HOME=$YARN_CACHE yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment