diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh
index 59cccd8889894fa8a2638886489950cb6b2916ba..96f21e894675d31080d6be643931df5fdb7e9ce8 100755
--- a/tasks/e2e-simple.sh
+++ b/tasks/e2e-simple.sh
@@ -90,7 +90,7 @@ fi
 if [ "$USE_YARN" = "yes" ]
 then
   # Install Yarn so that the test can use it to install packages.
-  npm install -g yarn
+  npm install -g yarn@0.22 # FIXME: this pin is temporary to work around a Yarn bug on CI
   yarn cache clean
 fi