diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c126e5e7..f1df2fe1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,13 +22,13 @@ jobs:
lfs: true
- name: Use Node.js
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v4
with:
- node-version: 16.x
+ node-version: 20.x
- - uses: pnpm/action-setup@v2.0.1
+ - uses: pnpm/action-setup@v4
with:
- version: 7.4.1
+ version: 9.8.0
run_install: |
- recursive: false
@@ -59,11 +59,11 @@ jobs:
- uses: actions/checkout@v2
- name: Use Node.js
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v4
with:
- node-version: 16.x
+ node-version: 20.x
- - uses: pnpm/action-setup@v2.0.1
+ - uses: pnpm/action-setup@v4
with:
version: 7.4.1
run_install: |
diff --git a/docs/src/pages/guide/deployment.mdx b/docs/src/pages/guide/deployment.mdx
index 0f2f6ac1..e372adcd 100644
--- a/docs/src/pages/guide/deployment.mdx
+++ b/docs/src/pages/guide/deployment.mdx
@@ -39,7 +39,7 @@ To deploy in Cloudflare Pages, you will need to [create a project](https://devel
- __Output Directory__: dist
Additionally, since the default version of node is `12.18.0`, you will need to
-set the `NODE_VERSION` environment variable to `14.18.1` or higher.
+set the `NODE_VERSION` environment variable to `20` or higher.
## Netlify
@@ -51,7 +51,7 @@ Add a `netlify.toml` file to your project:
command = "npm run build"
[build.environment]
- NODE_VERSION = "16"
+ NODE_VERSION = "20"
# NPM_FLAGS = "--version" # uncomment if using pnpm to skip npm install
```
@@ -94,7 +94,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
- node-version: 16.x
+ node-version: 20.x
- uses: pnpm/action-setup@v1.2.1
with: