From f5f57d963280d743cae0d04b6d80a7f49971f9e0 Mon Sep 17 00:00:00 2001 From: zomars Date: Mon, 20 Feb 2023 22:06:23 -0700 Subject: [PATCH] Adjustments --- .github/actions/yarn-build/action.yml | 1 + .github/actions/yarn-install/action.yml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/actions/yarn-build/action.yml b/.github/actions/yarn-build/action.yml index 2bece342c4..60a81004f6 100644 --- a/.github/actions/yarn-build/action.yml +++ b/.github/actions/yarn-build/action.yml @@ -77,6 +77,7 @@ runs: with: path: | apps/web/.next + node_modules/.cache/turbo key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}- diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.yml index 5569a8c65c..328f3e81f5 100644 --- a/.github/actions/yarn-install/action.yml +++ b/.github/actions/yarn-install/action.yml @@ -10,9 +10,11 @@ runs: uses: actions/cache@v3 env: cache-name: node-modules-yarn - cache-key: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }} + cache-key: ${{ env.node_version }}-${{ hashFiles('yarn.lock', 'packages/prisma/schema.prisma')) }} with: - path: node_modules + path: | + **/node_modules/** + packages/prisma/zod key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-key }} restore-keys: ${{ runner.os }}-${{ env.cache-name }}- - name: Yarn install