Skip to content

Commit fba441b

Browse files
committed
chore(ci): 更改使用npm,生成锁文件
1 parent 9e83988 commit fba441b

File tree

4 files changed

+9757
-7
lines changed

4 files changed

+9757
-7
lines changed

.github/workflows/package.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ jobs:
2222
node-version: 18
2323
cache: "npm"
2424

25-
- name: Install cnpm and dependencies
25+
- name: Install dependencies
2626
run: |
27-
npm install --package-lock-only
28-
npm install -g cnpm # 安装 cnpm
29-
cnpm install # 使用 cnpm 安装依赖
27+
npm install --package-lock-only # 仅生成 package-lock.json
28+
npm install # 使用 npm 安装依赖
3029
3130
- name: Build project
3231
run: npm run build

README-zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ git clone https://github.com/ProgramCX/flow_im_app.git
4040
2. 安装依赖
4141
```bash
4242
cd flow_im_app
43-
44-
cnpm install #如果你在中国大陆地区,建议使用cnpm安装依赖
43+
npm set registry https://registry.npmmirror.com # 如果在中国大陆地区,建议使用淘宝镜像
44+
npm install
4545
```
4646

4747
3. 启动项目

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ git clone https://github.com/ProgramCX/flow_im_app.git
3939
2. Install dependencies:
4040
```bash
4141
cd flow_im_app
42-
cnpm install # If you are in mainland China, using cnpm is recommended.
42+
npm set registry https://registry.npmmirror.com # If you are in mainland China, using the Taobao mirror is recommended.
43+
npm install
4344
```
4445
3. Start the project:
4546
```bash

0 commit comments

Comments
 (0)