From 50675593fad353f1e8af1f2a765fc124dd0ccb35 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Thu, 1 Jan 2026 11:22:03 -0300 Subject: [PATCH] refactor: simplify api-v1-production-build cache key for durability (#26365) * feat: add cache-api-v1-build-key action for durable caching Co-Authored-By: keith@cal.com * refactor: simplify cache key inline instead of separate action Co-Authored-By: keith@cal.com --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/api-v1-production-build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/api-v1-production-build.yml b/.github/workflows/api-v1-production-build.yml index 8f59aa5480..26d08fa9e8 100644 --- a/.github/workflows/api-v1-production-build.yml +++ b/.github/workflows/api-v1-production-build.yml @@ -75,15 +75,12 @@ jobs: cache-name: api-v1-build key-1: ${{ hashFiles('yarn.lock') }} key-2: ${{ hashFiles('apps/api/v1/**.[jt]s', 'apps/api/v1/**.[jt]sx', '!**/node_modules') }} - key-3: ${{ github.event.pull_request.number || github.ref }} - # Ensures production-build.yml will always be fresh - key-4: ${{ github.sha }} with: path: | ${{ github.workspace }}/apps/api/v1/.next **/.turbo/** **/dist/** - key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ env.key-4 }} + key: ${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }} - name: Log Cache Hit if: steps.cache-api-v1-build.outputs.cache-hit == 'true' run: echo "Cache hit for API v1 build. Skipping build."