fix(workflows): update pnpm cache key format and node version in autobuild and dev workflows

This commit is contained in:
Tunglies
2025-11-18 20:05:49 +08:00
parent df4c69e9cc
commit 531307ebe1
2 changed files with 19 additions and 10 deletions

View File

@@ -190,13 +190,13 @@ jobs:
node-version: "22"
cache: "pnpm"
- name: Cache pnpm store
- name: Pnpm Cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: "pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}"
restore-keys: |
${{ runner.os }}-pnpm-
pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}
- name: Pnpm install and check
run: |
@@ -286,13 +286,13 @@ jobs:
node-version: "22"
cache: "pnpm"
- name: Cache pnpm store
- name: Pnpm Cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: "pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}"
restore-keys: |
${{ runner.os }}-pnpm-
pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}
- name: Pnpm install and check
run: |
@@ -436,13 +436,13 @@ jobs:
node-version: "22"
cache: "pnpm"
- name: Cache pnpm store
- name: Pnpm Cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: "pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}"
restore-keys: |
${{ runner.os }}-pnpm-
pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}
- name: Pnpm install and check
run: |

View File

@@ -103,9 +103,18 @@ jobs:
if: github.event.inputs[matrix.input] == 'true'
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: "pnpm"
- name: Pnpm Cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: "pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}"
restore-keys: |
pnpm-shared-stable-${{ matrix.os }}-${{ matrix.target }}
lookup-only: true
- name: Pnpm install and check
if: github.event.inputs[matrix.input] == 'true'
run: |