From f74439f8d15593cd1ca0ea65393b60fb97361da2 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sat, 9 Nov 2024 13:25:24 -0800 Subject: [PATCH] fix: update-trieve should use turbo build (#1143) --- .github/workflows/registry.yaml | 9 +++++++++ .github/workflows/update-trieve.yaml | 13 +++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/registry.yaml b/.github/workflows/registry.yaml index e8428e00f..f94ecac9c 100644 --- a/.github/workflows/registry.yaml +++ b/.github/workflows/registry.yaml @@ -8,6 +8,7 @@ on: - main paths: - apps/registry/** + - .github/workflows/** jobs: Deploy-Production: @@ -27,6 +28,14 @@ jobs: node-version: 20 cache: "pnpm" + - name: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - name: Install Vercel CLI run: npm install --global vercel@latest diff --git a/.github/workflows/update-trieve.yaml b/.github/workflows/update-trieve.yaml index f936795ba..e6901ac33 100644 --- a/.github/workflows/update-trieve.yaml +++ b/.github/workflows/update-trieve.yaml @@ -1,4 +1,4 @@ -name: Update Trieve Index + buname: Update Trieve Index env: TRIEVE_ADMIN_API_KEY: ${{ secrets.TRIEVE_ADMIN_API_KEY }} TRIEVE_DATASET_ID: ${{ secrets.TRIEVE_DATASET_ID }} @@ -8,6 +8,7 @@ on: - main paths: - apps/docs/content/** + - .github/workflows/** jobs: Upload-Trieve: @@ -27,12 +28,20 @@ jobs: node-version: 20 cache: "pnpm" + - name: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - name: Install dependencies run: pnpm install --frozen-lockfile - name: Build docs working-directory: apps/docs - run: pnpm build + run: pnpm turbo build - name: Update Index working-directory: apps/docs