diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 76965e220dd0348f1bbb095c87fe2219779696ff..769d645acdde44e8bc12e57433413c426d45b3e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,6 @@ stages:
   - jalhyd
   - install
   - test
-  - build
   - clean-stale-branches
   - deploy
   - deploy-stable
@@ -28,6 +27,7 @@ before_script:
 cache:
   paths:
     - node_modules/
+  key: "${CI_BUILD_REF_NAME}"
 
 jalhyd:
   stage: jalhyd
@@ -70,20 +70,6 @@ test:
   script:
     - npm run e2e
 
-build:
-  stage: build
-  only:
-    - pushes
-    - tags
-    - schedules
-    - web
-  artifacts:
-    expire_in: 10 min
-    paths:
-      - dist/
-  script:
-    - npm run build -- --base-href=/cassiopee/$CI_COMMIT_REF_NAME/
-
 clean-stale-branches:
   stage: clean-stale-branches
   only:
@@ -99,9 +85,8 @@ deploy:
     - pushes
     - tags
     - web
-  dependencies:
-    - build
   script:
+    - npm run build -- --base-href=/cassiopee/$CI_COMMIT_REF_NAME/
     # Copie de la branche / du tag
     - rsync --delete -a "dist/" "$DEPLOY_HOST_LOGIN:$DEPLOY_URL/$CI_COMMIT_REF_NAME"
 
@@ -110,9 +95,8 @@ deploy-stable:
   only:
     variables:
       - $CI_COMMIT_REF_NAME == "stable"
-  dependencies:
-    - build
   script:
+    - npm run build -- --base-href=/cassiopee/$CI_COMMIT_REF_NAME/
     # Copie de la branche production
     - rsync --delete -a "dist/" "$DEPLOY_HOST_LOGIN:$DEPLOY_STABLE_URL/"
     # Modification du dossier base href