@@ -1416,14 +1416,23 @@ jobs:
1416
1416
with :
1417
1417
ref : ${{ env.HEAD_COMMIT }}
1418
1418
1419
+ - name : Setup Node
1420
+ uses : actions/setup-node@v4
1421
+ with :
1422
+ node-version : ${{ matrix.node }}
1423
+
1419
1424
- name : Restore dependency cache
1420
1425
uses : actions/cache/restore@v4
1421
1426
id : restore-dependencies
1422
1427
with :
1423
1428
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
1424
1429
key : ${{ needs.job_build.outputs.dependency_cache_key }}
1425
1430
enableCrossOsArchive : true
1426
- fail-on-cache-miss : true
1431
+
1432
+ - name : Install dependencies
1433
+ if : steps.restore-dependencies.outputs.cache-hit != 'true'
1434
+ run : yarn install --ignore-engines --frozen-lockfile
1435
+ shell : bash
1427
1436
1428
1437
- name : Restore build cache
1429
1438
uses : actions/cache/restore@v4
@@ -1432,15 +1441,17 @@ jobs:
1432
1441
path : ${{ env.CACHED_BUILD_PATHS }}
1433
1442
key : ${{ needs.job_build.outputs.dependency_cache_key }}
1434
1443
enableCrossOsArchive : true
1435
- fail-on-cache-miss : true
1444
+
1445
+ - name : Build packages
1446
+ env :
1447
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
1448
+ if : steps.restore-build.outputs.cache-hit != 'true'
1449
+ run : yarn build
1436
1450
1437
1451
- name : Configure safe directory
1438
1452
run : |
1439
1453
git config --global --add safe.directory "*"
1440
1454
1441
- - name : Install yarn
1442
- run :
npm i -g [email protected] --force
1443
-
1444
1455
- name : Increase yarn network timeout on Windows
1445
1456
if : contains(matrix.os, 'windows')
1446
1457
run : yarn config set network-timeout 600000 -g
@@ -1452,15 +1463,6 @@ jobs:
1452
1463
with :
1453
1464
python-version : ' 3.8.10'
1454
1465
1455
- - name : Setup Node
1456
- uses : actions/setup-node@v4
1457
- with :
1458
- node-version : ${{ matrix.node }}
1459
-
1460
- - name : Install Dependencies
1461
- if : steps.restore-dependencies.outputs.cache-hit != 'true'
1462
- run : yarn install --frozen-lockfile --ignore-engines --ignore-scripts
1463
-
1464
1466
- name : Setup (arm64| ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }})
1465
1467
if : matrix.arch == 'arm64' && !contains(matrix.container, 'alpine') && matrix.target_platform != 'darwin'
1466
1468
run : |
0 commit comments