box: node:5.11.0
build:
  steps:
    - npm-install
    - npm-test
    - io-monad/semantic-release@2.0.0:
        github_token: $GH_TOKEN
        npm_token: $NPM_TOKEN

box: node:5.11.0
build:
  steps:
    # Configure npm and bower to allow root scripts
    - script:
        name: enable root/sudo for npm/bower
        code: |
          # https://docs.npmjs.com/misc/config#unsafe-perm
          npm config set unsafe-perm true
          # https://github.com/bower/bower/issues/1752#issuecomment-113455403
          echo "{\"allow_root\": true}" > ~/.bowerrc

    - npm-install
    - npm-test
    - io-monad/semantic-release@2.0.0:
        github_token: $GH_TOKEN
        npm_token: $NPM_TOKEN

Fix bower install failed on CI
chore(CI): Fix bower install failed on CI

Since Docker runs commands always as root, but bower install fails with root. So we use a patch
config for wercker.yml here.
