From 36d020f0edb57f7e6b05e514a9d6f285cb9465c3 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Wed, 22 Jul 2026 00:19:59 +0800 Subject: [PATCH] CI: try pnpm/setup-action own cache --- .github/workflows/benchmark-download.yml | 3 ++- .github/workflows/check-source-domain.yml | 5 +++-- .github/workflows/main.yml | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark-download.yml b/.github/workflows/benchmark-download.yml index f0a77bce..4a74191d 100644 --- a/.github/workflows/benchmark-download.yml +++ b/.github/workflows/benchmark-download.yml @@ -59,10 +59,11 @@ jobs: - uses: pnpm/action-setup@v6 with: run_install: false + cache: true - uses: actions/setup-node@v6 with: node-version-file: ".node-version" - cache: "pnpm" + package-manager-cache: false - run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm install - name: Run download benchmark diff --git a/.github/workflows/check-source-domain.yml b/.github/workflows/check-source-domain.yml index a999c28b..cd8896db 100644 --- a/.github/workflows/check-source-domain.yml +++ b/.github/workflows/check-source-domain.yml @@ -24,13 +24,14 @@ jobs: - uses: actions/checkout@v6 with: persist-credentials: false - - uses: pnpm/action-setup@v5 + - uses: pnpm/action-setup@v6 with: run_install: false + cache: true - uses: actions/setup-node@v6 with: node-version-file: ".node-version" - cache: "pnpm" + package-manager-cache: false - name: Get current date id: date run: | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44a49dd8..55dea999 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,10 +72,11 @@ jobs: - uses: pnpm/action-setup@v6 with: run_install: false + cache: true - uses: actions/setup-node@v6 with: node-version-file: ".node-version" - cache: "pnpm" + package-manager-cache: false - run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm install # Foreground pnpm + Node.js setup complete, ensure previous build and cache.db are ready