@@ -39,14 +39,22 @@ jobs:
39
39
runs-on : ubuntu-latest
40
40
steps :
41
41
- uses : actions/checkout@v3
42
- - uses : actions/setup-node@v3
42
+ - uses : actions/setup-node@v4
43
43
with :
44
- node-version : 22.10.0
44
+ node-version-file : ' .nvmrc'
45
+ cache : yarn
46
+ cache-dependency-path : yarn.lock
47
+ - name : Restore cached node_modules
48
+ uses : actions/cache@v4
49
+ id : node_modules
50
+ with :
51
+ path : " **/node_modules"
52
+ key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
53
+ - run : yarn install --frozen-lockfile
45
54
- uses : ' google-github-actions/auth@v0'
46
55
with :
47
56
credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
48
57
- uses : google-github-actions/setup-gcloud@v2
49
- - run : yarn install
50
58
- run : yarn build
51
59
- name : Run health-metrics/binary-size test
52
60
run : yarn size-report
@@ -56,14 +64,20 @@ jobs:
56
64
runs-on : ubuntu-latest
57
65
steps :
58
66
- uses : actions/checkout@v3
59
- - uses : actions/setup-node@v3
67
+ - uses : actions/setup-node@v4
60
68
with :
61
- node-version : 22.10.0
69
+ node-version-file : ' .nvmrc '
62
70
- uses : ' google-github-actions/auth@v0'
63
71
with :
64
72
credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
65
73
- uses : google-github-actions/setup-gcloud@v2
66
- - run : yarn install
74
+ - name : Restore cached node_modules
75
+ uses : actions/cache@v4
76
+ id : node_modules
77
+ with :
78
+ path : " **/node_modules"
79
+ key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
80
+ - run : yarn install --frozen-lockfile
67
81
- run : yarn build
68
82
- name : Run health-metrics/modular-exports-binary-size test
69
83
run : yarn modular-export-size-report
0 commit comments