From 7d78b2d66808ef15c3ab7819512d09455cde05a1 Mon Sep 17 00:00:00 2001 From: Niggl Date: Sun, 30 Aug 2020 15:05:24 +0200 Subject: [PATCH] =?UTF-8?q?Now=20featuring=20a=20release=20pipeline=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4ace526 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,23 @@ +image: node:14 + +stages: + - publish + +# Install the dependencies +before_script: + - npm install + +cache: + paths: + - node_modules/ + +# Build the image and publish it to the npmjs registry. +publish: + stage: publish + only: + - tags + - triggers + script: + - npm run build + - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc + - npm publish \ No newline at end of file