在 Drone CI 配置文件 .drone.yml 中添加了安装 pnpm 的步骤: - 使用 npm 全局安装 pnpm - 配置 pnpm 使用国内代理 - 使用 pnpm 安装依赖并进行构建 这个修改将确保在 CI 环境中使用 pnpm 而不是 npm,以提高包管理和构建的效率。
This commit is contained in:
parent
149e5df1b3
commit
5a8b529b7b
@ -27,6 +27,7 @@ steps:
|
||||
path: /usr/local/share/.cache/yarn/v6
|
||||
commands:
|
||||
# - npm config set registry https://registry.npm.taobao.org
|
||||
- npm install -g pnpm
|
||||
- pnpm config set registry https://registry.npmmirror.com
|
||||
- pnpm install
|
||||
- pnpm build
|
||||
|
Loading…
Reference in New Issue
Block a user