From 82bfbf8e7d947710a1d991e9edf476a658c97a79 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Wed, 2 Dec 2020 12:38:32 +0100 Subject: [PATCH] Try setting registry (#36) --- .gitlab-ci.yml | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd65898a..0233e91d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,13 +23,14 @@ publish: - publish - master script: - - echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc + - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + - echo '@dbp-toolkit:registry=https://registry.npmjs.org' >> .npmrc # - echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > packages/auth/.npmrc # - sudo npm install --global can-npm-publish # - yarn config set registry https://registry.npmjs.org/ - yarn config set cache-folder "$CI_PROJECT_DIR/_yarn_cache" - yarn install - - yarn logout; npm logout +# - yarn logout; npm logout - npm whoami - yarn run build - - npm run publish + - yarn run publish diff --git a/package.json b/package.json index 4257146a..45f7a036 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "test": "lerna run test", "build": "lerna run build", - "publish": "lerna publish from-package --yes --no-verify-access" + "publish": "lerna publish from-package --yes" }, "author": "", "license": "LGPL-2.1-or-later", -- GitLab