Skip to content

Commit b6f968a

Browse files
committed
ci: use yarn instead of npm run
1 parent 4711e18 commit b6f968a

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
@@ -95,7 +95,7 @@ jobs:
9595
<<: *defaults
9696
steps:
9797
- attach_workspace: *attach_options
98-
- run: npm run lint
98+
- run: yarn lint
9999
- run: 'yarn bazel:format -mode=check ||
100100
(echo "BUILD files not formatted. Please run ''yarn bazel:format''" ; exit 1)'
101101
# Run the skylark linter to check our Bazel rules
@@ -106,13 +106,13 @@ jobs:
106106
<<: *defaults
107107
steps:
108108
- attach_workspace: *attach_options
109-
- run: npm run validate -- --ci
109+
- run: yarn validate -- --ci
110110

111111
test:
112112
<<: *defaults
113113
steps:
114114
- attach_workspace: *attach_options
115-
- run: npm run test -- --full
115+
- run: yarn test -- --full
116116

117117
test-large:
118118
<<: *defaults
@@ -122,8 +122,8 @@ jobs:
122122
parallelism: 4
123123
steps:
124124
- attach_workspace: *attach_options
125-
- run: npm run webdriver-update
126-
- run: npm run test-large -- --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
125+
- run: yarn webdriver-update
126+
- run: yarn test-large -- --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
127127

128128
e2e-cli:
129129
<<: *defaults
@@ -184,7 +184,7 @@ jobs:
184184
<<: *defaults
185185
steps:
186186
- attach_workspace: *attach_options
187-
- run: npm run admin -- build
187+
- run: yarn admin -- build
188188

189189
build-bazel:
190190
<<: *defaults
@@ -205,7 +205,7 @@ jobs:
205205
- run:
206206
name: Deployment to Snapshot
207207
command: |
208-
npm run admin -- snapshots --verbose --githubTokenFile=${HOME}/github_token
208+
yarn admin -- snapshots --verbose --githubTokenFile=${HOME}/github_token
209209
210210
publish:
211211
<<: *defaults
@@ -218,7 +218,7 @@ jobs:
218218
- run:
219219
name: Deployment to NPM
220220
command: |
221-
npm run admin -- publish --verbose
221+
yarn admin -- publish --verbose
222222
223223
# Windows jobs
224224
# CircleCI support for Windows jobs is still in preview.
@@ -240,8 +240,8 @@ jobs:
240240
- run: yarn install --frozen-lockfile
241241
# Build and test should be on their own jobs, but restoring workspaces is too slow
242242
# so we do it here.
243-
- run: npm run admin -- build
244-
- run: npm run test -- --full
243+
- run: yarn admin -- build
244+
- run: yarn test -- --full
245245
# Run partial e2e suite on PRs only. Master will run the full e2e suite with sharding.
246246
- run: if (Test-Path env:CIRCLE_PR_NUMBER) { node tests\legacy-cli\run_e2e.js "--glob=tests/{basic,ivy}/**" }
247247

@@ -256,7 +256,7 @@ jobs:
256256
- run: node --version
257257
- run: yarn --version
258258
- run: yarn install --frozen-lockfile
259-
- run: npm run admin -- build
259+
- run: yarn admin -- build
260260
- run: node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX
261261

262262
workflows:

0 commit comments

Comments
 (0)