From 78e71910f40969967352da4702ab504f1e561f19 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Tue, 20 Aug 2019 10:17:31 +0200 Subject: [PATCH] ci: update ci config --- .gitlab-ci.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1e0cf0b3..a5e4c9df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,7 @@ stages: - build - test - deploy + - publish build: stage: build @@ -70,21 +71,6 @@ 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: @@ -95,3 +81,18 @@ pages: artifacts: paths: - public + +package: + dependencies: + - build + tags: + - secrecy + stage: publish + script: + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + - npm publish + only: + - /^v[0-9]+.[0-9]+.[0-9]+$/ + artifacts: + paths: + - lib