diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 44b8f09371208713c2ab5ef0caf9cec57adba00e..96dad6fadbd93f361c615c1dcb10e14dd7a00220 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,7 @@ publish:
 #      - publish
   script:
     - sudo npm install --global can-npm-publish
-    - npm config set registry https://registry.npmjs.org/
+    - yarn config set registry https://registry.npmjs.org/
     - yarn config set cache-folder "$CI_PROJECT_DIR/_yarn_cache"
     - yarn install
     - yarn run publish