From 6f120e7b15973975bff5ea40c905890e3c0e9872 Mon Sep 17 00:00:00 2001 From: Dominik Sigmund <dominik.sigmund@br.de> Date: Fri, 28 Feb 2020 14:57:31 +0100 Subject: [PATCH] last try --- .gitlab-ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d71338f..f309d69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ variables: NPM_USERNAME: git NPM_PASSWORD: git NPM_EMAIL: git@git.de + NPM_REGISTRY: https://it-devops-01:4873 cache: paths: @@ -45,11 +46,7 @@ test: publish to local npm: stage: publish before_script: - - | - npm adduser --registry https://it-devops-01:4873 <<! - $NPM_USERNAME - $NPM_PASSWORD - $NPM_EMAIL - ! + - npm install -g npm-cli-adduser + - npm-cli-adduser --registry $NPM_REGISTRY --username $NPM_USERNAME --password $NPM_PASSWORD --email $NPM_PASSWORD script: - - npm publish --registry https://it-devops-01:4873 \ No newline at end of file + - npm publish --registry $NPM_REGISTRY \ No newline at end of file -- GitLab