diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bafd31286e4652127c6b05d03582bdb028e86275..b53e09c37f67325573eb8851ef0de6e78d7ac316 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,11 +6,17 @@ stages:
   tags:
     - redshift
 
+before_script:
+  - yarn
+
+cache:
+  paths:
+    - node_modules/
+
 pages:
   <<: *node
   stage: publish
   script:
-    - yarn
     - yarn generate
     - mv dist public
   artifacts: