diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 96dad6fadbd93f361c615c1dcb10e14dd7a00220..892ef33779e6a216f3734aa8ce94ec7af618d2f9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,9 +18,10 @@ test:
 
 publish:
   stage: publish
-#  only:
-#    refs:
-#      - publish
+  only:
+    refs:
+      - publish
+      - master
   script:
     - sudo npm install --global can-npm-publish
     - yarn config set registry https://registry.npmjs.org/
diff --git a/README.md b/README.md
index 57441c842a4a4a657287da16401a964d310445ed..e1bb85869f674722ce3580e407efb0c812e98f57 100644
--- a/README.md
+++ b/README.md
@@ -20,3 +20,10 @@ yarn install
 
 * `yarn run test` -  Run test for all packages
 * `yarn run clean` - Removes all `node_modules` directories.
+
+## Publishing packages to npmjs.com
+
+There is an automatic publishing process initiated for each package if code is pushed
+to the `master` branch, if the package isn't set to private in its `package.json` and
+the version number in its `package.json` is higher than the version number on npmjs.com.
+