fix: use github.sha for yarn cache key to avoid hashFiles() composite action bug

This commit is contained in:
Alice Zhao
2025-11-22 22:41:29 -08:00
parent 005505f4d7
commit 33560ba0de

View File

@@ -11,7 +11,8 @@ runs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }} TODO: Restore after https://github.com/actions/runner/issues/449 is fixed
key: ${{ runner.os }}-yarn-${{ github.sha }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies