diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index b585968..7be85ba 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -36,6 +36,16 @@ jobs: # path: ${{ github.workspace }}/.yarn/cache # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} # 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 # --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile)