Skip to content

Commit 8928aa5

Browse files
committed
Install latest yarn on AppVeyor to avoid windows crashing bug in yarn
1 parent 03a1f0b commit 8928aa5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

tasks/e2e-installs.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ root_path=$PWD
8686
# Clear cache to avoid issues with incorrect packages being used
8787
if hash yarnpkg 2>/dev/null
8888
then
89-
yarn cache clean
89+
# AppVeyor uses old version on yarn.
90+
# Once updated to 0.24.3 or above install can be removed.
91+
npm install -g yarn@latest
92+
yarnpkg cache clean
9093
fi
9194

9295
if hash npm 2>/dev/null

tasks/e2e-kitchensink.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ root_path=$PWD
6969
# Clear cache to avoid issues with incorrect packages being used
7070
if hash yarnpkg 2>/dev/null
7171
then
72-
yarn cache clean
72+
# AppVeyor uses old version on yarn.
73+
# Once updated to 0.24.3 or above install can be removed.
74+
npm install -g yarn@latest
75+
yarnpkg cache clean
7376
fi
7477

7578
if hash npm 2>/dev/null

tasks/e2e-simple.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ root_path=$PWD
6868
# Clear cache to avoid issues with incorrect packages being used
6969
if hash yarnpkg 2>/dev/null
7070
then
71-
yarn cache clean
71+
# AppVeyor uses old version on yarn.
72+
# Once updated to 0.24.3 or above install can be removed.
73+
npm install -g yarn@latest
74+
yarnpkg cache clean
7275
fi
7376

7477
if hash npm 2>/dev/null

0 commit comments

Comments
 (0)