From 67822be4ecc45896d0fb32f204d3cba55b841b0e Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Thu, 12 Jun 2025 05:54:29 +0700 Subject: [PATCH] feat: add turbo repo caching to github CI --- .github/workflows/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4bb253e8..7edc3418 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,8 +12,10 @@ jobs: matrix: node-version: - 22 - - 23 - - 24 + + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - uses: actions/checkout@v4 @@ -23,6 +25,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'pnpm' + - name: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-${{ matrix.node-version }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-${{ matrix.node-version }}-turbo- + - run: pnpm install --frozen-lockfile --strict-peer-dependencies - run: pnpm build - run: pnpm test