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: