diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6a49b66d582222647faf3ed7a66cae71769b893..bb35fcca25309b7dea22822231329929493ace02 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,15 +5,13 @@ stages:
   - lint
   - build_project
 
-cache:
-  key: "${CI_COMMIT_REF_SLUG}" # Branch-specific cache keys to have separate caches across branches.
-  paths:
-    - node_modules/
-
 install_dependencies:
   stage: install_dependencies
   script:
     - npm install
+  artifacts:
+    paths:
+      - node_modules
 
 lint:
   stage: lint
@@ -25,4 +23,7 @@ build_project:
   stage: build_project
   script:
     - npm run build
+  artifacts:
+    paths:
+      - node_modules/