diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea926d6bb6e96e1da511173ffb4965c0c0ae7825..82912a966210811608d13378dbb770112e2ea92b 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,5 @@ +image: node:latest + include: - project: 'general/templates' file: '/cicd/SAST-nodejs.gitlab-ci.yml' @@ -9,18 +11,16 @@ include: variables: SONAR_PROJECT_KEY: metrics SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8 - NPM_REGISTRY: https://npm.br-edv.brnet.int - NPM_TOKEN: 5w2Gy80rdH+2Tch0afNI6Q== cache: paths: - node_modules/ - docs/ + - dist/ stages: - build - test - - quality - publish build: @@ -43,6 +43,4 @@ test: publish: stage: publish script: - - npm config set strict-ssl false - - npm config set //${NPM_REGISTRY}/:_authToken ${NPM_TOKEN} - - npm publish --registry $NPM_REGISTRY + - npm publish diff --git a/.npmignore b/.npmignore index 26c7aba625a0800755623dd52ef9a944d1868260..b9c616ce68055f953000274af372b8b5092cbf46 100755 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,10 @@ src/ docs/ examples/ -.gitlab-ci.yml \ No newline at end of file +.gitlab-ci.yml +.npmrc +.eslintrc.json +jest.config.js +stryker.conf.json +tsconfig-examples.json +tsconfig.json diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000000000000000000000000000000000..fc233eb655011e5cdcebcb453eeeb6dc07b611a4 --- /dev/null +++ b/.npmrc @@ -0,0 +1,4 @@ +strict-ssl=false +@general:registry=https://gitlab.br.de/api/v4/projects/${CI_PROJECT_ID}/packages/npm/ +//gitlab.br.de/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN} +//gitlab.br.de/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN} diff --git a/package.json b/package.json index da7dc9143e4e41b28b87d70bca0f1e9ff171ce01..a90e641b95a3cc77e4f07007b77c102d22cb778b 100755 --- a/package.json +++ b/package.json @@ -19,6 +19,9 @@ "prometheus" ], "author": "Dominik Sigmund <dominik.sigmund@br.de>", + "publishConfig": { + "@general:registry":"https://gitlab.br.de/api/v4/projects/8/packages/npm/" + }, "license": "Unlicense", "dependencies": { "express": "^4.17.1",