From afc9ab6327e92bd146e13b8071a9555a1862e4ee Mon Sep 17 00:00:00 2001 From: Jasery Date: Thu, 30 Oct 2025 11:18:55 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E7=AE=80=E5=8C=96pnpm=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用内置的pnpm缓存配置替代手动缓存设置,简化工作流程 --- .github/workflows/publish.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 981a46d..ac4c51c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,19 +42,7 @@ jobs: run_install: | - recursive: true args: [--frozen-lockfile=false] - - - name: Get pnpm store directory - id: pnpm-cache - run: | - echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - - name: Setup pnpm cache - uses: actions/cache@v4 - with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + cache: 'pnpm' - name: Install dependencies run: pnpm install --no-frozen-lockfile