From 9d581ccd8d2f63da3afabe202860fea245b519a6 Mon Sep 17 00:00:00 2001 From: YHH <359807859@qq.com> Date: Wed, 24 Dec 2025 23:06:38 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E9=9B=86=E6=88=90=20Turborepo=20Remote?= =?UTF-8?q?=20Cache=20(#319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4af38682..a430deeb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,9 @@ on: jobs: ci: runs-on: ubuntu-latest + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - name: Checkout code @@ -67,17 +70,7 @@ jobs: - name: Install dependencies run: pnpm install --no-frozen-lockfile - # 缓存 Turbo - - name: Cache Turbo - uses: actions/cache@v4 - with: - path: .turbo - key: turbo-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} - restore-keys: | - turbo-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}- - turbo-${{ runner.os }}- - - # 构建所有包 + # 构建所有包 (使用 Turborepo Remote Cache) - name: Build all packages run: pnpm run build