From f2a7a64fa3a21dbb7737858f2cc215a06206b4fd Mon Sep 17 00:00:00 2001 From: Satya Patel Date: Sat, 3 Oct 2026 18:00:34 -0700 Subject: [PATCH] ci: finish moving the production deploys to the fast path #8101 missed the production docs deploy: it stayed on a GitHub runner with no Next build cache, and the preview docs job lost its cache step on the belief that production had none. Docs now runs on Blacksmith and writes the cache that the preview reads, like the other four apps. The five production jobs also install the Vercel CLI with bun, as the previews do. --- .github/workflows/deploy-preview.yml | 8 ++++++++ .github/workflows/deploy-production.yml | 19 +++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 3335971a826..01b62f30cc0 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -744,6 +744,14 @@ jobs: - name: Install Vercel CLI run: bun add --global vercel@$VERCEL_CLI_VERSION + # Production deploys on main write this cache; a PR only reads it. + - name: Restore Next.js build cache + uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: apps/docs/.next/cache + key: next-docs-${{ github.sha }} + restore-keys: next-docs- + - name: Build and Deploy Docs id: deploy env: diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 58c1641f661..d26fd645670 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -87,7 +87,7 @@ jobs: key: ${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-revision }}-${{ hashFiles('bun.lock') }} - name: Install Vercel CLI - run: npm install --global vercel@$VERCEL_CLI_VERSION + run: bun add --global vercel@$VERCEL_CLI_VERSION - name: Cache Next.js build cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 @@ -296,7 +296,7 @@ jobs: key: ${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-revision }}-${{ hashFiles('bun.lock') }} - name: Install Vercel CLI - run: npm install --global vercel@$VERCEL_CLI_VERSION + run: bun add --global vercel@$VERCEL_CLI_VERSION - name: Cache Next.js build cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 @@ -398,7 +398,7 @@ jobs: key: ${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-revision }}-${{ hashFiles('bun.lock') }} - name: Install Vercel CLI - run: npm install --global vercel@$VERCEL_CLI_VERSION + run: bun add --global vercel@$VERCEL_CLI_VERSION - name: Cache Next.js build cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 @@ -491,7 +491,7 @@ jobs: key: ${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-revision }}-${{ hashFiles('bun.lock') }} - name: Install Vercel CLI - run: npm install --global vercel@$VERCEL_CLI_VERSION + run: bun add --global vercel@$VERCEL_CLI_VERSION - name: Cache Next.js build cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 @@ -761,7 +761,7 @@ jobs: deploy-docs: name: Deploy Docs to Vercel - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 environment: production needs: deploy-database @@ -782,7 +782,14 @@ jobs: key: ${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-revision }}-${{ hashFiles('bun.lock') }} - name: Install Vercel CLI - run: npm install --global vercel@$VERCEL_CLI_VERSION + run: bun add --global vercel@$VERCEL_CLI_VERSION + + - name: Cache Next.js build cache + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: apps/docs/.next/cache + key: next-docs-${{ github.sha }} + restore-keys: next-docs- - name: Build and Deploy Docs env: