Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix: dist tag retry
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Apr 8, 2021
1 parent a3e2516 commit 840d36d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -226,7 +227,7 @@ workflows:
- schedule:
# Thursday morning
# cron: 0 11 * * 4
cron: 40 16 * * 4
cron: 48 16 * * 4
filters:
branches:
only:
Expand Down
6 changes: 0 additions & 6 deletions scripts/dist-tags-promote
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 840d36d

Please sign in to comment.