From 24bde119cbe51799cabb00ef4000a1b23a4dae0e Mon Sep 17 00:00:00 2001 From: Shubham Palriwala Date: Wed, 10 Apr 2024 17:36:37 +0530 Subject: [PATCH] feat: web builds across GitHub Action are cross branch now (#2410) --- .github/actions/cache-build-web/action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/cache-build-web/action.yml b/.github/actions/cache-build-web/action.yml index 34cfa42f80..151d6e3c9d 100644 --- a/.github/actions/cache-build-web/action.yml +++ b/.github/actions/cache-build-web/action.yml @@ -15,13 +15,12 @@ runs: cache-name: prod-build key-1: ${{ hashFiles('pnpm-lock.yaml') }} key-2: ${{ hashFiles('apps/**/**.[jt]s', 'apps/**/**.[jt]sx', 'packages/**/**.[jt]s', 'packages/**/**.[jt]sx', '!**/node_modules') }} - key-3: ${{ github.event.pull_request.number || github.ref }} with: path: | ${{ github.workspace }}/apps/web/.next **/.turbo/** **/dist/** - key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }} + key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }} - name: Setup Node.js 20.x uses: actions/setup-node@v3