@@ -22,28 +22,14 @@ jobs:
2222
2323 - name : Install Node.js
2424 uses : actions/setup-node@v4
25- with :
26- node-version : 18.x
2725
2826 - name : Install pnpm
29- uses : pnpm/action-setup@v3
30- id : pnpm-install
31- with :
32- version : 9
33- run_install : false
27+ uses : pnpm/action-setup@v4
3428
35- - name : Get pnpm store directory
36- id : pnpm-cache
37- shell : bash
38- run : |
39- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
40-
41- - name : Setup pnpm cache
42- uses : actions/cache@v4
29+ - name : Install Node.js
30+ uses : actions/setup-node@v4
4331 with :
44- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46- restore-keys : ${{ runner.os }}-pnpm-store-
32+ cache : ' pnpm'
4733
4834 - name : Install dependencies
4935 run : pnpm install --frozen-lockfile --no-optional
@@ -95,31 +81,13 @@ jobs:
9581 with :
9682 fetch-depth : 0
9783
98- - name : Install Node.js
99- uses : actions/setup-node@v4
100- with :
101- node-version : 18.x
102-
10384 - name : Install pnpm
104- uses : pnpm/action-setup@v3
105- id : pnpm-install
106- with :
107- version : 9
108- run_install : false
109-
110- - name : Get pnpm store directory
111- id : pnpm-cache
112- shell : bash
113- run : |
114- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
85+ uses : pnpm/action-setup@v4
11586
116- - name : Setup pnpm cache
117- uses : actions/cache @v4
87+ - name : Install Node.js
88+ uses : actions/setup-node @v4
11889 with :
119- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
120- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
121- restore-keys : |
122- ${{ runner.os }}-pnpm-store-
90+ cache : ' pnpm'
12391
12492 - name : Install dependencies
12593 run : pnpm install --frozen-lockfile --no-optional
0 commit comments