From ba43ef5021cbb40b38ff2e63dddbefeb453afe87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= Date: Thu, 7 Apr 2022 14:11:52 +0200 Subject: [PATCH] ci(circle ci): ci npm auth workflow order --- .circleci/config.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4770f1c30..fce44be47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -201,13 +201,18 @@ jobs: - attach_workspace: at: /tmp/ci/workspace - run: cat workspace/env-vars >> $BASH_ENV - - run: | - echo "@speckle:registry=https://registry.npmjs.org" >> .npmrc - echo "registry=http://registry.npmjs.org/" >> .npmrc - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc - - run: npm whoami - - run: echo $IMAGE_VERSION_TAG - run: npx lerna bootstrap + # this has to be after lerna bootstrap + # otherwise the auth workflow of lerna is borked... + - run: + name: auth to npm as Speckle + command: | + echo "@speckle:registry=https://registry.npmjs.org" >> .npmrc + echo "registry=http://registry.npmjs.org/" >> .npmrc + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc + - run: + name: try login to npm + command: npm whoami - run: npx lerna publish $IMAGE_VERSION_TAG --force-publish --dist-tag next -y publish-helm-chart: