diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 647f48834b1951ae080139420339e228400aefb9..4b741b59e42dca317f7e7bb4260bd37da4d343ce 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,10 +11,10 @@ build_site:
   stage: build
   image: ruby:2.7.0
   script:
+    - apt-get install -y nodejs
     - gem install bundler -v '2.3.11'
     - bundle install --path=vendor/
     - bundle exec jekyll build
-    - apt-get install -y nodejs
   artifacts:
     expire_in: 2 weeks
     paths: