diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b7cd78e0a1172566533b6474cd5e4c23276e195..962883d35c20a0a9e43d3b604c3980ed5a140996 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,4 +44,5 @@ publish to local npm:
   stage: publish
   script:
     - echo '//it-devops-01:4873/:_authToken="foobar"'>.npmrc
-    - npm publish --registry https://it-devops-01:4873
+    - npm set ca null
+    - npm publish --registry $NPM_REGISTRY