From 93ae7572302663353ac2a0babdbb56c724afaa33 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 3 Dec 2020 08:51:30 +0100 Subject: [PATCH] Add note about NPM_TOKEN (#36) --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b05f0be..1e53802c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,9 @@ publish: - publish - master script: + # https://www.npmjs.com/settings/dbp-deploy/tokens + # NPM_TOKEN needs to be a "Publish" token with 2FA disabled! + # "Automation" tokens don't work with lerna (even if they would work with "npm publish") - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc - yarn config set cache-folder "$CI_PROJECT_DIR/_yarn_cache" - yarn install -- GitLab