fix: 移除 CI/CD 工作流中的 GitHub Actions 缓存依赖

## 问题
- actions/cache@v4 需要访问 GitHub,在国内服务器上经常超时
- 导致 CI/CD 流程失败

## 解决方案
- 移除 actions/cache 依赖
- 每次构建时重新安装依赖(使用 pnpm 本地缓存)
- 简化工作流程,提高稳定性

## 影响
- 构建时间可能略微增加
- 但避免了网络超时问题
- pnpm 的本地 .pnpm-store 仍然提供缓存加速

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 16:32:12 +08:00
parent 87e870d0cb
commit 951569f6cc
-12
View File
@@ -21,24 +21,12 @@ jobs:
pnpm config set store-dir .pnpm-store
pnpm install --frozen-lockfile
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: .pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
build:
runs-on: [self-hosted, rent-deploy]
needs: install
steps:
- uses: actions/checkout@v4
- name: Restore pnpm cache
uses: actions/cache@v4
with:
path: .pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Build shared packages
run: |
npm install -g pnpm