Merge pull request #5252 from Project-OSRM/danpat_pin_yarn

Pin Yarn to 1.11.1 so it works with Node4
This commit is contained in:
Daniel Patterson 2018-10-30 15:40:19 -07:00 committed by GitHub
commit 802ccfb497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ before_install:
fi
- |
if [[ ! -f $(which yarn) ]]; then
npm install -g yarn
npm install -g yarn@1.11.1
fi
- export PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
- export PUBLISH=$([[ "${TRAVIS_TAG:-}" == "v${PACKAGE_JSON_VERSION}" ]] && echo "On" || echo "Off")