@@ -29,35 +29,35 @@ references:
2929
3030 restore_build_cache : &restore_build_cache
3131 restore_cache :
32- name : restore yarn package cache
32+ name : restore npm package cache
3333 keys :
34- - yarn -packages-v16-{{ checksum "yarn. lock" }}
34+ - npm -packages-v16-{{ checksum "package- lock.json " }}
3535
36- run_yarn_install : &run_yarn_install
36+ run_npm_install : &run_npm_install
3737 run :
3838 name : install dependencies
3939 # See: https://github.com/mozilla/addons-frontend/issues/3034
40- command : yarn install --pure-lockfile
40+ command : npm ci
4141
4242 save_build_cache : &save_build_cache
4343 save_cache :
44- name : save yarn package cache
45- key : yarn -packages-v16-{{ checksum "yarn. lock" }}
44+ name : save npm package cache
45+ key : npm -packages-v16-{{ checksum "package- lock.json " }}
4646 paths :
47- - ~/.cache/yarn
47+ - ~/.npm
4848
4949 restore_next_build_cache : &restore_next_build_cache
5050 restore_cache :
51- name : restore yarn package cache
51+ name : restore npm package cache
5252 keys :
53- - next-yarn -packages-v18-{{ checksum "yarn. lock" }}
53+ - next-npm -packages-v18-{{ checksum "package- lock.json " }}
5454
5555 save_next_build_cache : &save_next_build_cache
5656 save_cache :
57- name : save yarn package cache
58- key : next-yarn -packages-v18-{{ checksum "yarn. lock" }}
57+ name : save npm package cache
58+ key : next-npm -packages-v18-{{ checksum "package- lock.json " }}
5959 paths :
60- - ~/.cache/yarn
60+ - ~/.npm
6161
6262commands :
6363 better_checkout :
@@ -139,9 +139,9 @@ jobs:
139139 steps :
140140 - checkout
141141 - *restore_build_cache
142- - *run_yarn_install
142+ - *run_npm_install
143143 - *save_build_cache
144- - run : yarn build-ci
144+ - run : npm run build-ci
145145
146146 build-docker-image :
147147 << : *defaults-release
@@ -156,9 +156,9 @@ jobs:
156156 steps :
157157 - checkout
158158 - *restore_build_cache
159- - *run_yarn_install
159+ - *run_npm_install
160160 - *save_build_cache
161- - run : yarn build:blog-utils-prod
161+ - run : npm run build:blog-utils-prod
162162 # Set up a workspace to share data between this job and the
163163 # `release-blog-utils` one when we want to publish a new npm version.
164164 - persist_to_workspace :
@@ -171,9 +171,9 @@ jobs:
171171 steps :
172172 - better_checkout
173173 - *restore_build_cache
174- - *run_yarn_install
174+ - *run_npm_install
175175 - *save_build_cache
176- - run : yarn test-ci
176+ - run : npm run test-ci
177177 - codecov/upload
178178
179179 check :
@@ -183,29 +183,29 @@ jobs:
183183 steps :
184184 - better_checkout
185185 - *restore_build_cache
186- - *run_yarn_install
186+ - *run_npm_install
187187 - *save_build_cache
188- - run : yarn lint
189- - run : yarn prettier-ci
190- - run : pip install 'fonttools<4.44.1' brotli && yarn check-fonts
188+ - run : npm run lint
189+ - run : npm run prettier-ci
190+ - run : pip install 'fonttools<4.44.1' brotli && npm run check-fonts
191191
192192 # build-next:
193193 # <<: *defaults-next
194194 # steps:
195195 # - checkout
196196 # - *restore_next_build_cache
197- # - *run_yarn_install
197+ # - *run_npm_install
198198 # - *save_next_build_cache
199- # - run: yarn build
199+ # - run: npm run build
200200
201201 # test-next:
202202 # <<: *defaults-next
203203 # steps:
204204 # - better_checkout
205205 # - *restore_next_build_cache
206- # - *run_yarn_install
206+ # - *run_npm_install
207207 # - *save_next_build_cache
208- # - run: yarn test-ci-next
208+ # - run: npm run test-ci-next
209209
210210 dennis-lint :
211211 << : *defaults-release
@@ -264,7 +264,7 @@ jobs:
264264 - run :
265265 name : Build the app and check bundlesize from container
266266 command : |
267- docker run --rm addons-frontend yarn build-ci
267+ docker run --rm addons-frontend npm run build-ci
268268 - run :
269269 name : Write the sha256 sum to an artifact for verification
270270 command : |
@@ -277,7 +277,7 @@ jobs:
277277 - run :
278278 name : Check image works
279279 command : |
280- docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend sh -c "yarn build && yarn start"
280+ docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend sh -c "npm run build && npm start"
281281 sleep 60
282282 curl --retry 3 --retry-delay 2 http://127.0.0.1:4000/__frontend_lbheartbeat__
283283 - run :
@@ -319,7 +319,7 @@ jobs:
319319 - run :
320320 name : Build the app and check bundlesize from container
321321 command : |
322- docker run --rm addons-frontend yarn build-ci
322+ docker run --rm addons-frontend npm run build-ci
323323 - run :
324324 name : Write the sha256 sum to an artifact for verification
325325 command : |
@@ -332,7 +332,7 @@ jobs:
332332 - run :
333333 name : Check image works
334334 command : |
335- docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend sh -c "yarn build && yarn start"
335+ docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend sh -c "npm run build && npm start"
336336 sleep 60
337337 curl --retry 3 --retry-delay 2 http://127.0.0.1:4000/__frontend_lbheartbeat__
338338 - run :
0 commit comments