diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3862d9995fcd617e07e6b078beaab330f0cbdb65..65bd2a2e265e90b93574da0ac246462dc3fa22f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,5 +44,4 @@ test: publish: stage: publish script: - - npm config set strict-ssl false - - npm publish --verbose --registry $NPM_REGISTRY + - npm publish diff --git a/.npmignore b/.npmignore index e3f1f471d016b38d4409df78907d7c5c0c21f37a..926cc8af58c7c5e8e9ef6b3b59fa552fc15373c2 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1 @@ -.gitlab-ci.yml \ No newline at end of file +.gitlab-ci.yml 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 86dc47df56550ea66e831cd401092531d8f2610a..eb39986e62b2382ac44944dd4ba5de4927fe5138 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@plastdev/security", + "name": "@general/security", "version": "2.0.0", "description": "Sets Headers to a very save style in express-apps. may be overriden by config", "main": "index.js", @@ -17,6 +17,9 @@ "type": "git", "url": "https://gitlab.br.de/general/security.git" }, + "publishConfig": { + "@general:registry":"https://gitlab.br.de/api/v4/projects/15/packages/npm/" + }, "author": "Dominik Sigmund <dominik.sigmund@br.de>", "license": "ISC", "dependencies": {},