refactor: add publish stage for jobs that do not deploy

This commit is contained in:
Rainer Killinger
2019-07-01 14:33:43 +02:00
parent 4ea066af1d
commit 78e9e8250c
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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',