From 4249cadeac4c8e1342b5d7d2dacf0ac41491e760 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 20 Oct 2023 22:14:54 +0800 Subject: [PATCH] ci: fix cache --- .github/workflows/ci-on-pr.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-on-pr.yml b/.github/workflows/ci-on-pr.yml index 0abf1fb..64171d9 100644 --- a/.github/workflows/ci-on-pr.yml +++ b/.github/workflows/ci-on-pr.yml @@ -30,9 +30,14 @@ jobs: cache-name: cache-node-modules with: path: | - .yarn/cache node_modules + .yarn/unplugged + .yarn/install-state.gz key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: Install dependencies run: yarn install --immutable @@ -58,8 +63,9 @@ jobs: cache-name: cache-node-modules with: path: | - .yarn/cache node_modules + .yarn/unplugged + .yarn/install-state.gz key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}-