diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47cc8bf875b7d83024f29ddb698a0cb5f3cc1b74..c2ee99af9a25e1de8f8b2fec1b21fa180965d32f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,7 @@ cache:
   key: "${CI_COMMIT_REF_SLUG}"
   paths:
     - node_modules/
+    - build/
 
 install_dependencies:
   stage: install_dependencies
@@ -16,11 +17,10 @@ install_dependencies:
 
 build_project:
   stage: build_project
-  before_script:
-    - ls -l node_modules/.bin # list files to debug
-    - whoami # confirm we're running as root
-    - chmod +x node_modules/.bin/* # ensure scripts are executable
   script:
     - npm run build
-  after_script:
-    - ls -l # list files in current directory to debug
+  cache:
+    key: "${CI_COMMIT_REF_SLUG}"
+    paths:
+      - node_modules/
+    policy: pull