diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a978e64..4041b5e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,11 +16,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # 2. 设置 pnpm(runner 已预装 Node.js,跳过 setup-node) + # 2. 设置 pnpm(使用 corepack,避免从 GitHub 拉取 action) - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10.23.0 + run: | + corepack enable + corepack prepare pnpm@10.23.0 --activate + pnpm --version - name: Parse tag to env shell: bash