1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-03 18:43:20 +08:00
Files
408CSFamily/scripts/ci
142vip.cn 858e7bf314 feat: 依赖版本锁定 (#135)
* feat: 依赖版本锁定

* chore: update
2025-02-03 20:48:35 +08:00

18 lines
530 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
##
## 依赖安装脚本
## 使用:
## ./scripts/ci
##
NPM_REGISTRY="https://mirrors.tencent.com/npm/"
## 获取所有参数
echo "运行命令: export COREPACK_NPM_REGISTRY=$NPM_REGISTRY && corepack enable pnpm && pnpm i --registry $NPM_REGISTRY --frozen-lockfile $*"
# 导出corepack环境变量安装pnpm版本
export COREPACK_NPM_REGISTRY=$NPM_REGISTRY COREPACK_INTEGRITY_KEYS=0 && corepack enable pnpm
# 安装项目依赖 -w -F @142vip/fairy-cli
pnpm i --registry $NPM_REGISTRY --frozen-lockfile "$@"