From 343e0af9c522e51294c5ce7c5a1370396799020f Mon Sep 17 00:00:00 2001 From: ren Date: Wed, 22 Oct 2025 10:52:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BE=9D=E8=B5=96=E7=BC=93=E5=AD=98=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b5af96e..77002af 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -36,20 +36,27 @@ jobs: - name: 准备 | 安装包管理器 run: | - npm install -g pnpm + npm install -g pnpm@${{ env.PNPM_VERSION }} pnpm --version echo "✅ 包管理器安装成功" - - name: 准备 | 获取项目依赖哈希 + - name: 准备 | 获取依赖哈希 id: files-hash uses: actions/files-hash@v0.1 with: files: "**/pnpm-lock.yaml" + - name: 准备 | 获取依赖目录 + id: dependencies + run: | + DEPEND=$(pnpm store path) + echo "DEPEND=$DEPEND" >> $GITEA_OUTPUT + echo "✅ 依赖目录: $DEPEND" + - name: 准备 | 配置依赖缓存 uses: actions/cache@v3 with: - path: ~/.pnpm-store + path: ${{ steps.dependencies.outputs.DEPEND }} key: ${{ runner.os }}-pnpm-store-${{ steps.files-hash.outputs.hash }} restore-keys: | ${{ runner.os }}-pnpm-store-