ci(frontend): broaden dependency cache key

This commit is contained in:
Zeke Zhang committed 2026-07-09 12:47:04 +08:00
1 parent 3b5847fb51
commit 272023d4c3
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: node_modules.tar
key: frontend-node-modules-v1-${{ runner.os }}-node-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
key: frontend-node-modules-v2-${{ runner.os }}-node-${{ matrix.node_version }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/**/package.json', '.env.example', '.env.test.example', 'patches/**') }}
- name: Use Node.js ${{ matrix.node_version }}
if: steps.restore-dependencies.outputs.cache-hit != 'true'