From ea5cc912f0ecfb03589444ba88b3a125d60d56c0 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Mon, 27 May 2019 12:48:40 +0200 Subject: [PATCH] ci: add automatic publishing --- .gitlab-ci.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 421ff26f..0856173c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,13 +14,12 @@ stages: - deploy npm: - tags: - - docker stage: build script: - npm run build - except: - - schedules + artifacts: + paths: + - lib docker-builder: image: registry.gitlab.com/openstapps/projectmanagement/builder @@ -73,6 +72,21 @@ scheduled-audit: - npm audit stage: test +package: + dependencies: + - build + tags: + - secrecy + stage: deploy + script: + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + - npm publish + only: + - /^v[0-9]+.[0-9]+.[0-9]+$/ + artifacts: + paths: + - lib + pages: stage: deploy script: