From e4d0ccbc538e76349b0a27c01144328f0a49af95 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 22 Dec 2023 14:02:31 +0200 Subject: [PATCH] use same path as social connect yarn --cwd packages/sdk/contractkit test --- .github/actions/sync-workspace/action.yml | 7 ++++--- .github/workflows/ci.yml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/sync-workspace/action.yml b/.github/actions/sync-workspace/action.yml index 9c4862d68..85a993483 100644 --- a/.github/actions/sync-workspace/action.yml +++ b/.github/actions/sync-workspace/action.yml @@ -28,10 +28,11 @@ runs: REBUILD_PACKAGE: ${{ inputs.rebuild-package }} with: path: | - .yarn/cache - .yarn/install-state.gz + ./.yarn/cache + ./.yarn/install-state.gz + node_modules packages/**/node_modules - key: node-${{ runner.os }}-${{ runner.arch }}-${{ env.NODE_MODULE_CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }} + key: node-${{ runner.os }}-${{ runner.arch }}-${{ env.NODE_MODULE_CACHE_VERSION }}-${{ hashFiles('yarn.lock') }} enableCrossOsArchive: true fail-on-cache-miss: "!${{ fromJSON(env.REBUILD_PACKAGE) }}" - name: Restore build artifacts cache diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8f70df7e..0980cb12b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,8 +69,8 @@ jobs: # We need to cache all the artifacts generated by yarn install+build # Update this list also in .github/actions/sync-workspace/action.yml with exactly the same list path: | - .yarn/cache - .yarn/install-state.gz + ./.yarn/cache + ./.yarn/install-state.gz node_modules packages/**/node_modules key: node-${{ runner.os }}-${{ runner.arch }}-${{ env.NODE_MODULE_CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}