mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-18 00:11:08 +08:00
fix(ci): pnpm cache
This commit is contained in:
parent
02d0a7e61f
commit
a5a791a7f8
16
.github/workflows/frontend-check.yml
vendored
16
.github/workflows/frontend-check.yml
vendored
@ -38,22 +38,26 @@ jobs:
|
|||||||
if: steps.check_frontend.outputs.frontend != 'true'
|
if: steps.check_frontend.outputs.frontend != 'true'
|
||||||
run: echo "No frontend changes, skipping frontend checks."
|
run: echo "No frontend changes, skipping frontend checks."
|
||||||
|
|
||||||
|
- name: Install pnpm
|
||||||
|
if: steps.check_frontend.outputs.frontend == 'true'
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
if: steps.check_frontend.outputs.frontend == 'true'
|
if: steps.check_frontend.outputs.frontend == 'true'
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "22"
|
||||||
|
cache: "pnpm"
|
||||||
- run: corepack enable
|
|
||||||
if: steps.check_frontend.outputs.frontend == 'true'
|
|
||||||
|
|
||||||
- name: Restore pnpm cache
|
- name: Restore pnpm cache
|
||||||
if: steps.check_frontend.outputs.frontend == 'true'
|
if: steps.check_frontend.outputs.frontend == 'true'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.pnpm-store
|
path: ~/.pnpm-store
|
||||||
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
key: "pnpm-shared-stable-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}"
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
pnpm-store-${{ runner.os }}-
|
pnpm-shared-stable-${{ runner.os }}-
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile
|
||||||
if: steps.check_frontend.outputs.frontend == 'true'
|
if: steps.check_frontend.outputs.frontend == 'true'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user