ci: fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
张哲铜 2025-10-08 15:33:00 +08:00
parent de7022b8a8
commit 432074a0b9
1 changed files with 2 additions and 3 deletions

View File

@ -12,13 +12,12 @@ trigger:
steps: steps:
# 步骤 1: 安装 pnpm 并缓存依赖 # 步骤 1: 安装 pnpm 并缓存依赖
- name: install-and-build - name: install-and-build
image: node:18-alpine image: node:22-alpine
commands: commands:
# 设置国内镜像 # 设置国内镜像
- npm config set registry https://registry.npmmirror.com - npm config set registry https://registry.npmmirror.com
# 安装 pnpm (使用项目指定版本) - npm install -g pnpm@^10
- npm install -g pnpm@10.10.0
# 设置 pnpm 国内镜像和缓存配置 # 设置 pnpm 国内镜像和缓存配置
- pnpm config set registry https://registry.npmmirror.com - pnpm config set registry https://registry.npmmirror.com