diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c00229e398c7cd464f025b30bccaa6e2dc39f81..1e0a8b555ee4d17fca42b265aee945795da9274d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,13 +17,11 @@ publish_npm:
   script:
     - npm install -g typescript@4.7.4
     - npm install -g ts-proto@1.115.5
+    - mkdir config/clients
+    - make proto
     - cd ./config
-    - mkdir clients
     - ls
-    - make proto
     - NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
     - yarn pub
     - echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry"
-    - rm -rf ./clients
-    - cd ..
     - rm -rf ./clients
\ No newline at end of file