File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -228,12 +228,9 @@ jobs:
228
228
if : ${{ steps.cache.outputs.cache-hit != 'true' }}
229
229
run : yarn cli generate ${{ matrix.client.language }} ${{ matrix.client.toRun }}
230
230
231
- - name : Update `yarn.lock` for JavaScript
231
+ - name : Restore the algoliasearch package.json
232
232
if : ${{ matrix.client.language == 'javascript' }}
233
- run : |
234
- cd ${{ matrix.client.path }}
235
- mv packages/algoliasearch/package.json.tmp packages/algoliasearch/package.json
236
- YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
233
+ run : mv ${{ matrix.client.path }}/packages/algoliasearch/package.json.tmp ${{ matrix.client.path }}/packages/algoliasearch/package.json
237
234
238
235
- name : Build clients
239
236
if : ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language != 'php' }}
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ export async function formatter(
13
13
let cmd = '' ;
14
14
switch ( language ) {
15
15
case 'javascript' :
16
+ if ( CI ) {
17
+ await run (
18
+ 'cd clients/algoliasearch-client-javascript && YARN_ENABLE_IMMUTABLE_INSTALLS yarn install' ,
19
+ { verbose }
20
+ ) ;
21
+ }
16
22
cmd = `yarn eslint --ext=ts,json ${ folder } --fix --no-error-on-unmatched-pattern` ;
17
23
break ;
18
24
case 'java' :
You can’t perform that action at this time.
0 commit comments