diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index f50f69c7102dde47f8ae62797908c74a652383e1..9ba5e332f1517558b809b18115d754ca588a4356 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -211,8 +211,7 @@ Debug:
     # Add the Drupal Vendor Hardening Composer Plugin.
     # see https://github.com/drupal/core-vendor-hardening
     - composer config --no-interaction allow-plugins.drupal/core-vendor-hardening true
-    - composer require --no-update --no-interaction --no-progress drupal/core-vendor-hardening
-    - composer install --no-interaction --no-progress --no-dev
+    - composer require --update-no-dev --no-interaction --no-progress drupal/core-vendor-hardening
   artifacts:
     name: build-prod
     when: always
@@ -233,8 +232,7 @@ Debug:
     LAKEDROPS_BUILD_NG: 'yes'
   script:
     - if [[ -n $DOWNGRADE_COMPOSER ]]; then composer self-update --$DOWNGRADE_COMPOSER; fi
-    - composer require --no-update --no-interaction --no-progress lakedrops/docker4drupal
-    - composer install --no-interaction --no-progress --no-dev
+    - composer require --update-no-dev --no-interaction --no-progress lakedrops/docker4drupal
     - composer lakedrops:docker4drupal
   artifacts:
     name: build-prod-ng