diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df7c8dd2cad0a1f8d61597d3025753322b6bce48..570c86f031aae25d527458c2497565c74f8ae73e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,8 @@ include: variables: SONAR_PROJECT_KEY: config SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8 - NPM_REGISTRY: https://it-devops-01:4873 + NPM_REGISTRY: http://it-devops-01:4873 + NPM_TOKEN: ZMh1NzlklUTNNvt573Imgw== cache: paths: @@ -43,9 +44,5 @@ test: publish to local npm: stage: publish script: - - echo 'strict-ssl=false' > .npmrc - - echo '@br:registry=https://it-devops-01:4873/' >> .npmrc - - echo '//it-devops-01:4873/:_authToken="ZMh1NzlklUTNNvt573Imgw=="' >> .npmrc - - npm set ca null - - cat .npmrc - - npm publish + - echo '//it-devops-01:4873/:_authToken=${NPM_TOKEN}'>.npmrc + - npm publish --registry $NPM_REGISTRY