From fcbbdf1e7a1a243c51b68357c67fbbcb8c4b4d7d Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 12 Dec 2018 23:28:18 -0500 Subject: [PATCH] chore(ci): fix deps not installing on CI for PRs from forks --- .circleci/config.yml | 6 ++++++ .npmrc | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) delete mode 100644 .npmrc diff --git a/.circleci/config.yml b/.circleci/config.yml index e991b548..5cc2df7e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -82,6 +82,9 @@ jobs: - restore_cache: *repo_cache - restore_cache: *deps_cache - restore_cache: *build_cache + - run: + name: Authenticate with registry + command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc - run: yarn release:canary --yes release_stable: @@ -90,6 +93,9 @@ jobs: - restore_cache: *repo_cache - restore_cache: *deps_cache - restore_cache: *build_cache + - run: + name: Authenticate with registry + command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc - run: yarn release:stable:ci --yes workflows: diff --git a/.npmrc b/.npmrc deleted file mode 100644 index ae643592..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -//registry.npmjs.org/:_authToken=${NPM_TOKEN}