diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index 0596011331f415f05d2f451442dd49400ad2d758..52e32e2721d8d59285f713dc1d4237b3dabf0605 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -34,13 +34,14 @@ do
                 # change to the blade directory to be built
                 cd $BLADE
 
-                # install npm
-                yarn add -g yo grunt-cli generator-reveal
-                yarn
-
                 # build the unstable version - can be optimized
                 git config submodule.theme.url https://$CI_DEPLOY_USER:$CI_DEPLOY_PASSWORD@git-r3lab.uni.lu/R3/outreach/theme.git
                 git submodule update --recursive --init
+
+                # install npm
+                yarn add -g grunt-cli generator-reveal
+                yarn
+
                 grunt dist
                 mv public/* $rootDir/public/$BLADE/unstable/.
                 echo " > unstable built for file set ${BLADE}"