From 72133843b867c8e2b9081002c0307b76590b70e4 Mon Sep 17 00:00:00 2001
From: Dominik Sigmund <dominik.sigmund@br.de>
Date: Mon, 2 Mar 2020 09:46:27 +0100
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c9b102e..d819009 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,9 +11,7 @@ include:
 variables:
   SONAR_PROJECT_KEY: config
   SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
-  NPM_USERNAME: git
-  NPM_PASSWORD: git
-  NPM_EMAIL: git@git.de
+  NPM_TOKEN: ZMh1NzlklUTNNvt573Imgw==
   NPM_REGISTRY: https://it-devops-01:4873
 
 cache:
@@ -45,9 +43,6 @@ test:
 
 publish to local npm:
   stage: publish
-  before_script:
-    - npm install -g npm-cli-adduser
-    - npm config set @br:registry $NPM_REGISTRY
-    - npm-cli-adduser --registry $NPM_REGISTRY --username $NPM_USERNAME --password $NPM_PASSWORD --email $NPM_EMAIL --scope @br
   script:
+    - echo '//it-devops-01:4873/:_authToken=${NPM_TOKEN}'>.npmrc
     - npm publish --registry $NPM_REGISTRY
\ No newline at end of file
-- 
GitLab