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') }}