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."