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: stages:
- build - build
- test - test
- publish
- deploy - deploy
build: build:
@@ -41,7 +42,7 @@ package:
- build - build
tags: tags:
- secrecy - secrecy
stage: deploy stage: publish
script: script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- npm publish - npm publish

View File

@@ -763,7 +763,7 @@ export function getRules(configuration: Configuration): Rules {
tags: [ tags: [
'secrecy', 'secrecy',
], ],
stage: 'deploy', stage: 'publish',
script: [ script: [
'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc', 'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc',
'npm publish', 'npm publish',