diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 35993fb95ac2043b1f8a73300ea37f285bc910c8..d9cb3defa77dc825f45b623c0c1ffda7d3d5a73e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,8 @@ publish_npm:
   variables:
     GIT_SUBMODULE_STRATEGY: recursive
   before_script:
-    - git submodule update --init
+    - apk --no-cache add git
+    - git submodule update --remote --merge
     - apk add --update make bash protobuf-dev yarn
     - npm install -g ts-proto@1.115.5
     - npm install -g typescript@4.7.4