@@ -39,14 +39,22 @@ jobs:
3939 runs-on : ubuntu-latest
4040 steps :
4141 - uses : actions/checkout@v3
42- - uses : actions/setup-node@v3
42+ - uses : actions/setup-node@v4
4343 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
4554 - uses : ' google-github-actions/auth@v0'
4655 with :
4756 credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
4857 - uses : google-github-actions/setup-gcloud@v2
49- - run : yarn install
5058 - run : yarn build
5159 - name : Run health-metrics/binary-size test
5260 run : yarn size-report
@@ -56,14 +64,20 @@ jobs:
5664 runs-on : ubuntu-latest
5765 steps :
5866 - uses : actions/checkout@v3
59- - uses : actions/setup-node@v3
67+ - uses : actions/setup-node@v4
6068 with :
61- node-version : 22.10.0
69+ node-version-file : ' .nvmrc '
6270 - uses : ' google-github-actions/auth@v0'
6371 with :
6472 credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
6573 - 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
6781 - run : yarn build
6882 - name : Run health-metrics/modular-exports-binary-size test
6983 run : yarn modular-export-size-report
0 commit comments