|
35 | 35 | uses: actions/setup-node@v4 |
36 | 36 | with: |
37 | 37 | node-version: ${{ env.NODE_VERSION }} |
38 | | - cache: 'pnpm' |
| 38 | + |
| 39 | + - name: Get pnpm store directory |
| 40 | + shell: bash |
| 41 | + run: | |
| 42 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 43 | +
|
| 44 | + - name: Setup pnpm cache |
| 45 | + uses: actions/cache@v4 |
| 46 | + with: |
| 47 | + path: ${{ env.STORE_PATH }} |
| 48 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} |
| 49 | + restore-keys: | |
| 50 | + ${{ runner.os }}-pnpm-store- |
39 | 51 |
|
40 | 52 | - name: Setup Rust |
41 | 53 | uses: dtolnay/rust-toolchain@stable |
@@ -125,7 +137,19 @@ jobs: |
125 | 137 | uses: actions/setup-node@v4 |
126 | 138 | with: |
127 | 139 | node-version: ${{ env.NODE_VERSION }} |
128 | | - cache: 'pnpm' |
| 140 | + |
| 141 | + - name: Get pnpm store directory |
| 142 | + shell: bash |
| 143 | + run: | |
| 144 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 145 | +
|
| 146 | + - name: Setup pnpm cache |
| 147 | + uses: actions/cache@v4 |
| 148 | + with: |
| 149 | + path: ${{ env.STORE_PATH }} |
| 150 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} |
| 151 | + restore-keys: | |
| 152 | + ${{ runner.os }}-pnpm-store- |
129 | 153 |
|
130 | 154 | - name: Install dependencies |
131 | 155 | run: pnpm install |
@@ -160,7 +184,19 @@ jobs: |
160 | 184 | uses: actions/setup-node@v4 |
161 | 185 | with: |
162 | 186 | node-version: ${{ env.NODE_VERSION }} |
163 | | - cache: 'pnpm' |
| 187 | + |
| 188 | + - name: Get pnpm store directory |
| 189 | + shell: bash |
| 190 | + run: | |
| 191 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 192 | +
|
| 193 | + - name: Setup pnpm cache |
| 194 | + uses: actions/cache@v4 |
| 195 | + with: |
| 196 | + path: ${{ env.STORE_PATH }} |
| 197 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} |
| 198 | + restore-keys: | |
| 199 | + ${{ runner.os }}-pnpm-store- |
164 | 200 |
|
165 | 201 | - name: Setup Rust |
166 | 202 | uses: dtolnay/rust-toolchain@stable |
@@ -242,7 +278,19 @@ jobs: |
242 | 278 | uses: actions/setup-node@v4 |
243 | 279 | with: |
244 | 280 | node-version: ${{ env.NODE_VERSION }} |
245 | | - cache: 'pnpm' |
| 281 | + |
| 282 | + - name: Get pnpm store directory |
| 283 | + shell: bash |
| 284 | + run: | |
| 285 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 286 | +
|
| 287 | + - name: Setup pnpm cache |
| 288 | + uses: actions/cache@v4 |
| 289 | + with: |
| 290 | + path: ${{ env.STORE_PATH }} |
| 291 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} |
| 292 | + restore-keys: | |
| 293 | + ${{ runner.os }}-pnpm-store- |
246 | 294 |
|
247 | 295 | - name: Install dependencies |
248 | 296 | run: pnpm install |
@@ -274,7 +322,19 @@ jobs: |
274 | 322 | uses: actions/setup-node@v4 |
275 | 323 | with: |
276 | 324 | node-version: ${{ env.NODE_VERSION }} |
277 | | - cache: 'pnpm' |
| 325 | + |
| 326 | + - name: Get pnpm store directory |
| 327 | + shell: bash |
| 328 | + run: | |
| 329 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 330 | +
|
| 331 | + - name: Setup pnpm cache |
| 332 | + uses: actions/cache@v4 |
| 333 | + with: |
| 334 | + path: ${{ env.STORE_PATH }} |
| 335 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} |
| 336 | + restore-keys: | |
| 337 | + ${{ runner.os }}-pnpm-store- |
278 | 338 |
|
279 | 339 | - name: Setup Rust |
280 | 340 | uses: dtolnay/rust-toolchain@stable |
@@ -460,7 +520,19 @@ jobs: |
460 | 520 | uses: actions/setup-node@v4 |
461 | 521 | with: |
462 | 522 | node-version: ${{ env.NODE_VERSION }} |
463 | | - cache: 'pnpm' |
| 523 | + |
| 524 | + - name: Get pnpm store directory |
| 525 | + shell: bash |
| 526 | + run: | |
| 527 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 528 | +
|
| 529 | + - name: Setup pnpm cache |
| 530 | + uses: actions/cache@v4 |
| 531 | + with: |
| 532 | + path: ${{ env.STORE_PATH }} |
| 533 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} |
| 534 | + restore-keys: | |
| 535 | + ${{ runner.os }}-pnpm-store- |
464 | 536 |
|
465 | 537 | - name: Install dependencies |
466 | 538 | run: pnpm install |
|
0 commit comments