diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9b102e1b779db736f1fbd10a9ec9fac7ba3f416..d81900952388de843fec4072b24c182c10b8ab89 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