diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5769a6ebd38d5e2c3116875700ebbd977c6d778e..98b052e45c19a7e11c383be22aac83c877248094 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,13 +13,14 @@ default:
     - echo "setwd(\"$(pwd)\")" > .Rprofile
     - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
     - rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
-    - R -e 'remotes::install_deps(dep = T)'
 
 .build:
   stage: build
   script:
     - cd ..
     - echo "setwd(\"$(pwd)\")" > .Rprofile
+    - R -e 'utils::install.packages("usethis")'
+    - R -e 'remotes::install_deps(dep = T)'
     - R CMD build airgr
     - rename "s/airGR/${R_VERSION}.airGR/" airGR_*.tar.gz
     - mv *.tar.gz airgr/