@@ -100,6 +100,19 @@ jobs:
100100 with :
101101 version : ${{ env.PNPM_VERSION }}
102102
103+ - name : Get pnpm store directory
104+ shell : bash
105+ run : |
106+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
107+
108+ - name : Setup pnpm cache
109+ uses : actions/cache@v4
110+ with :
111+ path : ${{ env.STORE_PATH }}
112+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
113+ restore-keys : |
114+ ${{ runner.os }}-pnpm-store-
115+
103116 - name : Install dependencies
104117 run : pnpm install --frozen-lockfile
105118
@@ -221,6 +234,19 @@ jobs:
221234 with :
222235 version : ${{ env.PNPM_VERSION }}
223236
237+ - name : Get pnpm store directory
238+ shell : bash
239+ run : |
240+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
241+
242+ - name : Setup pnpm cache
243+ uses : actions/cache@v4
244+ with :
245+ path : ${{ env.STORE_PATH }}
246+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
247+ restore-keys : |
248+ ${{ runner.os }}-pnpm-store-
249+
224250 - name : Install dependencies
225251 run : pnpm install --frozen-lockfile
226252
@@ -256,6 +282,19 @@ jobs:
256282 with :
257283 version : ${{ env.PNPM_VERSION }}
258284
285+ - name : Get pnpm store directory
286+ shell : bash
287+ run : |
288+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
289+
290+ - name : Setup pnpm cache
291+ uses : actions/cache@v4
292+ with :
293+ path : ${{ env.STORE_PATH }}
294+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
295+ restore-keys : |
296+ ${{ runner.os }}-pnpm-store-
297+
259298 - name : Install dependencies
260299 run : pnpm install --frozen-lockfile
261300
@@ -342,6 +381,19 @@ jobs:
342381 with :
343382 version : ${{ env.PNPM_VERSION }}
344383
384+ - name : Get pnpm store directory
385+ shell : bash
386+ run : |
387+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
388+
389+ - name : Setup pnpm cache
390+ uses : actions/cache@v4
391+ with :
392+ path : ${{ env.STORE_PATH }}
393+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
394+ restore-keys : |
395+ ${{ runner.os }}-pnpm-store-
396+
345397 - name : Install dependencies
346398 run : pnpm install --frozen-lockfile
347399
@@ -438,6 +490,19 @@ jobs:
438490 with :
439491 version : ${{ env.PNPM_VERSION }}
440492
493+ - name : Get pnpm store directory
494+ shell : bash
495+ run : |
496+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
497+
498+ - name : Setup pnpm cache
499+ uses : actions/cache@v4
500+ with :
501+ path : ${{ env.STORE_PATH }}
502+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
503+ restore-keys : |
504+ ${{ runner.os }}-pnpm-store-
505+
441506 - name : Install dependencies
442507 run : pnpm install --frozen-lockfile
443508
@@ -489,6 +554,19 @@ jobs:
489554 with :
490555 version : ${{ env.PNPM_VERSION }}
491556
557+ - name : Get pnpm store directory
558+ shell : bash
559+ run : |
560+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
561+
562+ - name : Setup pnpm cache
563+ uses : actions/cache@v4
564+ with :
565+ path : ${{ env.STORE_PATH }}
566+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
567+ restore-keys : |
568+ ${{ runner.os }}-pnpm-store-
569+
492570 - name : Install dependencies
493571 run : pnpm install --frozen-lockfile
494572
@@ -531,6 +609,19 @@ jobs:
531609 with :
532610 version : ${{ env.PNPM_VERSION }}
533611
612+ - name : Get pnpm store directory
613+ shell : bash
614+ run : |
615+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
616+
617+ - name : Setup pnpm cache
618+ uses : actions/cache@v4
619+ with :
620+ path : ${{ env.STORE_PATH }}
621+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
622+ restore-keys : |
623+ ${{ runner.os }}-pnpm-store-
624+
534625 - name : Install dependencies
535626 run : pnpm install --frozen-lockfile
536627
0 commit comments