Skip to content

Commit 5032735

Browse files
committed
ci: use yarn instead of npm run
1 parent bda4ad4 commit 5032735

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
<<: *defaults
9191
steps:
9292
- attach_workspace: *attach_options
93-
- run: npm run lint
93+
- run: yarn lint
9494
- run: 'yarn bazel:format -mode=check ||
9595
(echo "BUILD files not formatted. Please run ''yarn bazel:format''" ; exit 1)'
9696
# Run the skylark linter to check our Bazel rules
@@ -101,13 +101,13 @@ jobs:
101101
<<: *defaults
102102
steps:
103103
- attach_workspace: *attach_options
104-
- run: npm run validate -- --ci
104+
- run: yarn validate -- --ci
105105

106106
test:
107107
<<: *defaults
108108
steps:
109109
- attach_workspace: *attach_options
110-
- run: npm run test -- --full
110+
- run: yarn test -- --full
111111

112112
test-large:
113113
<<: *defaults
@@ -117,8 +117,8 @@ jobs:
117117
parallelism: 4
118118
steps:
119119
- attach_workspace: *attach_options
120-
- run: npm run webdriver-update
121-
- run: npm run test-large -- --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
120+
- run: yarn webdriver-update
121+
- run: yarn test-large -- --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
122122

123123
e2e-cli:
124124
<<: *defaults
@@ -179,7 +179,7 @@ jobs:
179179
<<: *defaults
180180
steps:
181181
- attach_workspace: *attach_options
182-
- run: npm run admin -- build
182+
- run: yarn admin -- build
183183

184184
build-bazel:
185185
<<: *defaults
@@ -200,7 +200,7 @@ jobs:
200200
- run:
201201
name: Deployment to Snapshot
202202
command: |
203-
npm run admin -- snapshots --verbose --githubTokenFile=${HOME}/github_token
203+
yarn admin -- snapshots --verbose --githubTokenFile=${HOME}/github_token
204204
205205
publish:
206206
<<: *defaults
@@ -213,7 +213,7 @@ jobs:
213213
- run:
214214
name: Deployment to NPM
215215
command: |
216-
npm run admin -- publish --verbose
216+
yarn admin -- publish --verbose
217217
218218
# Windows jobs
219219
# CircleCI support for Windows jobs is still in preview.
@@ -235,8 +235,8 @@ jobs:
235235
- run: yarn install --frozen-lockfile
236236
# Build and test should be on their own jobs, but restoring workspaces is too slow
237237
# so we do it here.
238-
- run: npm run admin -- build
239-
- run: npm run test -- --full
238+
- run: yarn admin -- build
239+
- run: yarn test -- --full
240240
# Run partial e2e suite on PRs only. Master will run the full e2e suite with sharding.
241241
- run: if (Test-Path env:CIRCLE_PR_NUMBER) { node tests\legacy-cli\run_e2e.js "--glob=tests/{basic,ivy}/**" }
242242

@@ -251,7 +251,7 @@ jobs:
251251
- run: node --version
252252
- run: yarn --version
253253
- run: yarn install --frozen-lockfile
254-
- run: npm run admin -- build
254+
- run: yarn admin -- build
255255
- run: node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX
256256

257257
workflows:

0 commit comments

Comments
 (0)