Skip to content

Commit 01601d7

Browse files
committed
Fix yarn
1 parent 6166800 commit 01601d7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

circle.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
machine:
2+
environment:
3+
YARN_VERSION: 0.18.1
4+
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
25
node:
36
version: 6
47

58
dependencies:
6-
cache_directories:
7-
- ~/.yarn
8-
- ~/.cache/yarn
99
pre:
10-
- curl -o- -L https://yarnpkg.com/install.sh | bash
10+
- |
11+
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
12+
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
13+
fi
14+
cache_directories:
15+
- ~/.yarn
16+
- ~/.cache/yarn
1117
override:
1218
- NODE_ENV=dev yarn install
1319

0 commit comments

Comments
 (0)