Merge pull request #526 from sharetribe/fix-circleci-yarn-version

Fix CircleCI Yarn version
This commit is contained in:
Kimmo Puputti 2017-10-31 12:36:15 +02:00 committed by GitHub
commit 04c6f59d5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -2,15 +2,25 @@
machine:
node:
version: 6.11.4
version: 6.11.5
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
YARN_VERSION: 1.2.1
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
pre:
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
echo "Downloading and installing Yarn"
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
else
echo "The correct version of Yarn is already installed"
fi
override:
- yarn
cache_directories:
- ~/.cache/yarn
- ~/.yarn
test:
pre:

View file

@ -72,7 +72,7 @@
"trailingComma": "es5"
},
"engines": {
"node": "6.11.4",
"node": "6.11.5",
"yarn": "^1.2.1"
}
}