Modify pnpm store prune to avoid failure

Ensure pnpm store prune does not fail the workflow.
This commit is contained in:
严浩
2025-11-18 02:37:29 +08:00
committed by GitHub
parent 336b5888cb
commit 94776edf02

View File

@@ -233,7 +233,8 @@ runs:
pnpm install --prefer-offline
# --frozen-lockfile
# ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
pnpm store prune
pnpm store prune || true
# https://github.com/pnpm/pnpm/issues/10131#issuecomment-3528934120
- name: 📊 显示缓存命中状态
run: |