box: blisteringherb/scholarship@0.0.6
# Build definition
build:
  steps:
    - script:
        name: install bundler
        code: sudo gem install bundler
    - npm-install
    - script:
        name: Build theme
        code: npm run build
deploy:
  steps:
    - bundle-install
    - script:
        name: write env var
        code: |-
          export CAP_PRIVATE_KEY=`mktemp`
          echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
    - cap
  after-steps:
    - hipchat-notify:
        token: $HIPCHAT_TOKEN
        room-id: $HIPCHAT_ROOM_ID
        from-name: wercker

box: blisteringherb/scholarship@0.0.6
# Build definition
build:
  steps:
    - script:
        name: install bundler
        code: sudo gem install bundler
    - script:
        name: npm install
        code: |-
          sudo npm install -g npm
          npm -v
          mkdir -p $WERCKER_CACHE_DIR/wercker/npm
          npm config set cache $WERCKER_CACHE_DIR/wercker/npm
          sudo npm install
    - script:
        name: Build theme
        code: npm run build
deploy:
  steps:
    - bundle-install
    - script:
        name: write env var
        code: |-
          export CAP_PRIVATE_KEY=`mktemp`
          echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
    - cap
  after-steps:
    - hipchat-notify:
        token: $HIPCHAT_TOKEN
        room-id: $HIPCHAT_ROOM_ID
        from-name: wercker

Use sudo for NPM, because reasons.
Use sudo for NPM, because reasons.
