Skip to content

Commit 4ec4ccd

Browse files
authored
[feat] [infra] upgrade rush/pnpm and nodejs version (#26)
* feat: update rush and pnpm version * docs: update readme * ci: set node version to 24
1 parent 2468021 commit 4ec4ccd

24 files changed

Lines changed: 1505 additions & 1220 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Build and Test
1616
runs-on: ubuntu-latest
1717
env:
18-
NODE_VERSION: '18'
18+
NODE_VERSION: '24'
1919
steps:
2020
- uses: actions/checkout@v3
2121
with:

.github/workflows/issue-sync.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Sync Issues
1414
runs-on: ubuntu-latest
1515
env:
16-
NODE_VERSION: '18'
16+
NODE_VERSION: '24'
1717
LARK_APP_ID: ${{ secrets.COZELOOP_LARK_APP_ID }}
1818
LARK_APP_SECRET: ${{ secrets.COZELOOP_LARK_APP_SECRET }}
1919
ISSUE_ACTION: ${{ github.event.action }}

.github/workflows/pr-sync.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Send Lark Message
1414
runs-on: ubuntu-latest
1515
env:
16-
NODE_VERSION: '18'
16+
NODE_VERSION: '24'
1717
LARK_APP_ID: ${{ secrets.COZELOOP_LARK_APP_ID }}
1818
LARK_APP_SECRET: ${{ secrets.COZELOOP_LARK_APP_SECRET }}
1919
REPO_NAME: ${{ github.repository }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/hydrogen
1+
lts/krypton

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ Find usage examples for each package in the [examples](./examples) directory:
2424

2525
### Prerequisites
2626

27-
- Node.js 18+ (LTS/Hydrogen recommended)
28-
- pnpm 9.12.0
29-
- Rush 5.150.0
27+
- Node.js 24+ (LTS/Krypton recommended)
28+
- pnpm 10.27.0
29+
- Rush 5.172.1
3030

3131
### Installation
3232

33-
1. **Install Node.js 18+**
33+
1. **Install Node.js 24+**
3434

3535
``` bash
36-
nvm install lts/hydrogen
37-
nvm alias default lts/hydrogen # set default node version
38-
nvm use lts/hydrogen
36+
nvm install lts/krypton
37+
nvm alias default lts/krypton # set default node version
38+
nvm use lts/krypton
3939
```
4040

4141
2. **Clone the repository**
@@ -47,7 +47,7 @@ git clone git@github.com:coze-dev/cozeloop-js.git
4747
3. **Install required global dependencies**
4848

4949
``` bash
50-
npm i -g pnpm@9.12.0 @microsoft/rush@5.150.0
50+
npm i -g pnpm@10.27.0 @microsoft/rush@5.172.1
5151
```
5252

5353
4. **Install project dependencies**

README.zh-CN.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424

2525
### 前置要求
2626

27-
- Node.js 18+ (推荐 LTS/Hydrogen)
28-
- pnpm 9.12.0
29-
- Rush 5.150.0
27+
- Node.js 24+ (推荐 LTS/Krypton)
28+
- pnpm 10.27.0
29+
- Rush 5.172.1
3030

3131
### 安装步骤
3232

33-
1. **安装 Node.js 18+**
33+
1. **安装 Node.js 24+**
3434

3535
```bash
36-
nvm install lts/hydrogen
37-
nvm alias default lts/hydrogen # 设置默认 node 版本
38-
nvm use lts/hydrogen
36+
nvm install lts/krypton
37+
nvm alias default lts/krypton # 设置默认 node 版本
38+
nvm use lts/krypton
3939
```
4040

4141
2. **克隆仓库**
@@ -47,7 +47,7 @@ git clone git@github.com:coze-dev/cozeloop-js.git
4747
3. **安装必需的全局依赖**
4848

4949
```bash
50-
npm i -g pnpm@9.12.0 @microsoft/rush@5.150.0
50+
npm i -g pnpm@10.27.0 @microsoft/rush@5.172.1
5151
```
5252

5353
4. **安装项目依赖**

common/autoinstallers/rush-commitlint/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"dependencies": {
1212
"@commitlint/cli": "^17.2.0",
1313
"@commitlint/config-conventional": "^17.2.0",
14-
"@rushstack/rush-sdk": "5.150.0",
14+
"@rushstack/rush-sdk": "5.172.1",
1515
"commitizen": "^4.2.6",
1616
"cz-customizable": "^7.2.1"
1717
},
1818
"devDependencies": {
19-
"@types/node": "^20"
19+
"@types/node": "^24"
2020
}
2121
}

0 commit comments

Comments
 (0)