feat(FN-4441): complete Step 2 — verify cache-hit integrity

Fusion-Task-Id: FN-4441
Fusion-Task-Lineage: e3d7d9fe-cd8e-4c00-bb13-0fdb9ce91c34
This commit is contained in:
Fusion
2026-05-13 23:59:20 -07:00
committed by gsxdsm
parent 00c8739d5f
commit 41070475bf

View File

@@ -47,3 +47,13 @@ runs:
if: ${{ inputs.skip-install != 'true' && steps.node-modules-cache.outputs.cache-hit != 'true' }}
shell: bash
run: pnpm install ${{ inputs.install-args }}
- name: Verify restored node_modules cache integrity
if: ${{ inputs.skip-install != 'true' && steps.node-modules-cache.outputs.cache-hit == 'true' }}
shell: bash
run: |
test -f node_modules/.modules.yaml || {
echo "ERROR: node_modules cache hit but node_modules/.modules.yaml is missing"
exit 1
}
pnpm -v