ci(.drone.yml): 调整 pnpm 配置和安装步骤
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- 将 pnpm 配置和安装步骤分离 - 先安装 pnpm,然后配置镜像源 - 保持安装依赖的步骤不变
This commit is contained in:
parent
7dd10168e0
commit
65abe929c3
@ -23,9 +23,10 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
# 配置镜像源
|
# 配置镜像源
|
||||||
- npm config set registry https://registry.npmmirror.com
|
- npm config set registry https://registry.npmmirror.com
|
||||||
|
- npm install -g pnpm
|
||||||
- pnpm config set registry https://registry.npmmirror.com
|
- pnpm config set registry https://registry.npmmirror.com
|
||||||
# 安装pnpm
|
# 安装pnpm
|
||||||
- npm install -g pnpm
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user