mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Merge pull request #526 from sharetribe/fix-circleci-yarn-version
Fix CircleCI Yarn version
This commit is contained in:
commit
04c6f59d5a
2 changed files with 13 additions and 3 deletions
14
circle.yml
14
circle.yml
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
"trailingComma": "es5"
|
||||
},
|
||||
"engines": {
|
||||
"node": "6.11.4",
|
||||
"node": "6.11.5",
|
||||
"yarn": "^1.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue