From 78e9e8250c4b20fa4427ce5a469bef59936f4709 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Mon, 1 Jul 2019 14:33:43 +0200 Subject: [PATCH] refactor: add publish stage for jobs that do not deploy --- .gitlab-ci.yml | 3 ++- src/common.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8e6c461..127273e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,7 @@ before_script: stages: - build - test + - publish - deploy build: @@ -41,7 +42,7 @@ package: - build tags: - secrecy - stage: deploy + stage: publish script: - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc - npm publish diff --git a/src/common.ts b/src/common.ts index 541dab92..d0bf80f1 100644 --- a/src/common.ts +++ b/src/common.ts @@ -763,7 +763,7 @@ export function getRules(configuration: Configuration): Rules { tags: [ 'secrecy', ], - stage: 'deploy', + stage: 'publish', script: [ 'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc', 'npm publish',