Skip to content

Commit d6dbc79

Browse files
committed
docs: update Node.js requirement
1 parent cf27cf9 commit d6dbc79

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/guide/deployment.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,24 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
steps:
47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@v6
4848
with:
4949
# fetch all commits to get last updated time or other git log info
5050
fetch-depth: 0
5151

5252
- name: Setup pnpm
53-
uses: pnpm/action-setup@v4
53+
uses: pnpm/action-setup@v6
5454

5555
- name: Setup Node.js
56-
uses: actions/setup-node@v4
56+
uses: actions/setup-node@v6
5757
with:
5858
# choose node.js version to use
59-
node-version: 22
59+
node-version: 24
6060
# cache deps for pnpm
6161
cache: pnpm
6262

6363
- name: Install deps
64-
run: pnpm install --frozen-lockfile
64+
run: pnpm ci
6565

6666
# run build script
6767
- name: Build VuePress site
@@ -101,7 +101,7 @@ Please refer to [GitHub Pages official guide](https://pages.github.com/) for mor
101101

102102
```yaml
103103
# choose a docker image to use
104-
image: node:18-buster
104+
image: node:24-buster
105105
106106
pages:
107107
# trigger deployment on every push to main branch
@@ -209,7 +209,7 @@ See [Edgio Documentation > Framework Guides > VuePress](https://docs.edg.io/guid
209209
- **Publish directory:** `docs/.vuepress/dist`
210210

211211
2. Set [Environment variables](https://docs.netlify.com/configure-builds/environment-variables) to choose node version:
212-
- `NODE_VERSION`: 20
212+
- `NODE_VERSION`: 24
213213

214214
3. Hit the deploy button.
215215

docs/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can try VuePress directly in your browser on [StackBlitz](https://stackblitz
1212

1313
### Prerequisites
1414

15-
- [Node.js v20.9.0+](https://nodejs.org/)
15+
- [Node.js v22.18.0+](https://nodejs.org/)
1616
- Package manager like [pnpm](https://pnpm.io), [yarn](https://classic.yarnpkg.com/en/), [npm](https://www.npmjs.com), etc.
1717

1818
::: tip

docs/zh/guide/deployment.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,24 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
steps:
47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@v6
4848
with:
4949
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
5050
fetch-depth: 0
5151

5252
- name: 设置 pnpm
53-
uses: pnpm/action-setup@v4
53+
uses: pnpm/action-setup@v6
5454

5555
- name: 设置 Node.js
56-
uses: actions/setup-node@v4
56+
uses: actions/setup-node@v6
5757
with:
5858
# 选择要使用的 node 版本
59-
node-version: 22
59+
node-version: 24
6060
# 缓存 pnpm 依赖
6161
cache: pnpm
6262

6363
- name: 安装依赖
64-
run: pnpm install --frozen-lockfile
64+
run: pnpm ci
6565

6666
# 运行构建脚本
6767
- name: 构建 VuePress 站点
@@ -101,7 +101,7 @@ jobs:
101101

102102
```yaml
103103
# 选择你要使用的 docker 镜像
104-
image: node:18-buster
104+
image: node:24-buster
105105
106106
pages:
107107
# 每当 push 到 main 分支时触发部署

docs/zh/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ VuePress v2 目前仍处于 RC (Release Candidate) 阶段。你已经可以用
1212

1313
### 依赖环境
1414

15-
- [Node.js v20.9.0+](https://nodejs.org/)
15+
- [Node.js v22.18.0+](https://nodejs.org/)
1616
- 包管理器,如 [pnpm](https://pnpm.io/zh/)[yarn](https://classic.yarnpkg.com/en/)[npm](https://www.npmjs.com/) 等。
1717

1818
::: tip

0 commit comments

Comments
 (0)