Skip to content

Commit f4e7ae2

Browse files
committed
chore(ci): fix deps not installing on CI for PRs from forks
1 parent aced75c commit f4e7ae2

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.circleci/config.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,20 @@ jobs:
8282
- restore_cache: *repo_cache
8383
- restore_cache: *deps_cache
8484
- restore_cache: *build_cache
85-
- run: yarn release:canary --yes
85+
- run:
86+
name: Authenticate with registry
87+
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
88+
- run: yarn release:canary
8689

8790
release_stable:
8891
<<: *defaults
8992
steps:
9093
- restore_cache: *repo_cache
9194
- restore_cache: *deps_cache
9295
- restore_cache: *build_cache
96+
- run:
97+
name: Authenticate with registry
98+
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
9399
- run: yarn release:stable:ci --yes
94100

95101
workflows:
@@ -129,9 +135,9 @@ workflows:
129135
- lint
130136
- test
131137
- build
132-
filters:
133-
branches:
134-
only: master
138+
# filters:
139+
# branches:
140+
# only: master
135141
- release_stable:
136142
requires:
137143
- lint

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)