在工作流中添加显示缓存命中状态的步骤

This commit is contained in:
mini2024
2025-04-06 03:25:50 +08:00
parent 4b718f4cee
commit 694d8c00ce

View File

@ -205,7 +205,11 @@ runs:
# --frozen-lockfile
# ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
pnpm store prune
- name: 📊 显示缓存命中状态
run: |
echo "cache-hit: ${{ steps.cache-pnpm-restore.outputs.cache-hit }}"
shell: bash
- id: cache-pnpm-save
if: always() && steps.cache-pnpm-restore.outputs.cache-hit == 'false'