diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a955e162dde3ba58ce66e9b250193cca6ad87c35..91dd596a07ab17c2910c03d46ec33a68cc4cd6ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -422,8 +422,8 @@ build-front:
     - mkdir -p $CI_PROJECT_DIR/build/monitoring_ui
     - cd $CI_PROJECT_DIR/build/monitoring_ui
     - cp -r $CI_PROJECT_DIR/monitoring/monitoring_ui/* .
-    - ./generate-proto.sh
     - npm install
+    - ./generate-proto.sh
     - npm run build
   tags:
     - kubernetes-executor