fix(workflow): turn cache on
This commit is contained in:
@@ -36,6 +36,16 @@ jobs:
|
|||||||
# path: ${{ github.workspace }}/.yarn/cache
|
# path: ${{ github.workspace }}/.yarn/cache
|
||||||
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
# restore-keys: ${{ runner.os }}-yarn-
|
# restore-keys: ${{ runner.os }}-yarn-
|
||||||
|
#
|
||||||
|
- name: Persistent Yarn Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: yarn-cache
|
||||||
|
with:
|
||||||
|
# In Yarn Berry, the cache is local to the project
|
||||||
|
path: .yarn/cache
|
||||||
|
# Ensure a clean key without hidden newline characters
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-yarn-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile)
|
# --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile)
|
||||||
|
|||||||
Reference in New Issue
Block a user