1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-07-17 11:30:39 +08:00

fix(CI): 修复依赖下载异常,PNPM版本约束统一

This commit is contained in:
142vip.cn
2023-10-31 19:19:27 +08:00
parent 56cb1dee37
commit af06e39ed5
2 changed files with 12 additions and 8 deletions

View File

@@ -6,7 +6,8 @@
##
# 期望的 pnpm 大版本号
majorVersionRequired="8"
majorVersionRequired=$(grep -o '"pnpm": *"[^"]*"' package.json | awk -F'"' '{print $4}')
echo "期望的 pnpm 大版本号:$majorVersionRequired"
# 检测 pnpm 是否已安装并且大版本号符合要求
checkPNPMVersion() {
@@ -37,3 +38,6 @@ fi
# 安装项目依赖
pnpm i --frozen-lockfile --registry https://registry.npmmirror.com