From 840d36d12449fe3f8806ea05200900ba95805621 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Thu, 8 Apr 2021 11:47:11 -0500 Subject: [PATCH] fix: dist tag retry --- .circleci/config.yml | 3 ++- scripts/dist-tags-promote | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 433b642f..2655ee1f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -120,6 +120,7 @@ jobs: steps: - checkout - jq/install + - run: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~.npmrc - run: yarn promote-dist-tags close-CTC: @@ -226,7 +227,7 @@ workflows: - schedule: # Thursday morning # cron: 0 11 * * 4 - cron: 40 16 * * 4 + cron: 48 16 * * 4 filters: branches: only: diff --git a/scripts/dist-tags-promote b/scripts/dist-tags-promote index 7d5aa2dd..90d59eb0 100755 --- a/scripts/dist-tags-promote +++ b/scripts/dist-tags-promote @@ -1,9 +1,3 @@ -# get CI environment auth'd; local one-off use assumes you're already auth'd to npm -if [ $NPM_TOKEN ]; then - echo "saving npm token from environment to .npmrc" - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc -fi - CLI_RC_VERSION=$(npm show sfdx-cli@latest-rc version) npm dist-tag add sfdx-cli@${CLI_RC_VERSION} latest