diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f49ffced332ca4a3b593114387de69cbc7015f33..2658b08e321eeb344ee3c34eaecabd6c5128222b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,4 +34,7 @@ publish:
   stage: deploy
   script:
     - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
-    - npm publish
\ No newline at end of file
+    - npm publish
+  only:
+    - tags
+    - triggers
\ No newline at end of file