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