diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbb5b895d12f677da008147520e4f9d1e9f2a3af..22e14a5ea386c370f09020037c2f911340f7c364 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,10 +11,8 @@ include: variables: SONAR_PROJECT_KEY: config SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8 - NPM_USERNAME: git - NPM_PASSWORD: git - NPM_EMAIL: git@git.de - NPM_REGISTRY: https://it-devops-01:4873 + NPM_REGISTRY: https://it-devops-01.br-edv.brnet.int:4873 + NPM_TOKEN: ZMh1NzlklUTNNvt573Imgw== cache: paths: @@ -43,10 +41,11 @@ test: - docs/test-report.html - docs/coverage/lcov.info -publish to local npm: +publish: stage: publish - before_script: - - npm install -g npm-cli-adduser - - npm-cli-adduser --registry $NPM_REGISTRY --username $NPM_USERNAME --password $NPM_PASSWORD --email $NPM_EMAIL script: - - npm publish --registry $NPM_REGISTRY \ No newline at end of file + - printenv NPM_TOKEN + - npm config set strict-ssl false + - npm config set //it-devops-01.br-edv.brnet.int:4873/:_authToken ${NPM_TOKEN} + - npm token list --registry $NPM_REGISTRY + - npm publish --verbose --registry $NPM_REGISTRY diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000000000000000000000000000000000..e3f1f471d016b38d4409df78907d7c5c0c21f37a --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +.gitlab-ci.yml \ No newline at end of file diff --git a/package.json b/package.json index b37c853b1336f1800956f10949b05fcf9e5c92f1..db92a53e2a9ef1c6ad059363f263c916479effeb 100644 --- a/package.json +++ b/package.json @@ -31,5 +31,8 @@ "html" ], "coverageDirectory": "docs/coverage" + }, + "publishConfig": { + "@br:registry":"https://it-devops-01:4873" } }