diff --git a/.github/workflows/lint-commit-message.yml b/.github/workflows/lint-commit-message.yml index 5aa5b2865c..4499b88fdf 100644 --- a/.github/workflows/lint-commit-message.yml +++ b/.github/workflows/lint-commit-message.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/lint-typecheck.yml b/.github/workflows/lint-typecheck.yml index 3ddb7cbae5..6fac2175b4 100644 --- a/.github/workflows/lint-typecheck.yml +++ b/.github/workflows/lint-typecheck.yml @@ -27,7 +27,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/pr-docs-build.yml b/.github/workflows/pr-docs-build.yml index 85b521880e..0a3cc3d2e7 100644 --- a/.github/workflows/pr-docs-build.yml +++ b/.github/workflows/pr-docs-build.yml @@ -13,10 +13,10 @@ jobs: strategy: matrix: - node-version: [20] + node-version: [22] os: [ubuntu-latest, windows-latest] include: - - node-version: 20 + - node-version: 22 node-name: LTS fail-fast: false diff --git a/.github/workflows/publish-build-product.yml b/.github/workflows/publish-build-product.yml index 79a2b4298c..20d5e01a51 100644 --- a/.github/workflows/publish-build-product.yml +++ b/.github/workflows/publish-build-product.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/publish-docs-deploy-manual.yml b/.github/workflows/publish-docs-deploy-manual.yml index 78b228a4bb..84b8500ae8 100644 --- a/.github/workflows/publish-docs-deploy-manual.yml +++ b/.github/workflows/publish-docs-deploy-manual.yml @@ -16,7 +16,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/publish-docs-deploy.yml b/.github/workflows/publish-docs-deploy.yml index 02fd575c36..6cafd0ed6c 100644 --- a/.github/workflows/publish-docs-deploy.yml +++ b/.github/workflows/publish-docs-deploy.yml @@ -23,7 +23,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/publish-npm-nightly.yml b/.github/workflows/publish-npm-nightly.yml index 6c27e30580..729cbfc6cc 100644 --- a/.github/workflows/publish-npm-nightly.yml +++ b/.github/workflows/publish-npm-nightly.yml @@ -22,7 +22,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index fc7a0ead27..ddfb727e2c 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -21,7 +21,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies @@ -44,7 +44,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/publish-pr-commit-pkg.yml b/.github/workflows/publish-pr-commit-pkg.yml index 79cbf05a4f..13cc008109 100644 --- a/.github/workflows/publish-pr-commit-pkg.yml +++ b/.github/workflows/publish-pr-commit-pkg.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/publish-size-report.yml b/.github/workflows/publish-size-report.yml index cdb8bf9aad..5b8ce19985 100644 --- a/.github/workflows/publish-size-report.yml +++ b/.github/workflows/publish-size-report.yml @@ -20,7 +20,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - uses: preactjs/compressed-size-action@v2 diff --git a/.github/workflows/staging-docs.yml b/.github/workflows/staging-docs.yml index 1d29d27761..9a0b739d00 100644 --- a/.github/workflows/staging-docs.yml +++ b/.github/workflows/staging-docs.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index f5677d2c27..c6fa9110d0 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/test-ssr.yml b/.github/workflows/test-ssr.yml index 80d43f6ff9..1359fe1d52 100644 --- a/.github/workflows/test-ssr.yml +++ b/.github/workflows/test-ssr.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 06c66bed45..ec0c0d85dc 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -15,11 +15,11 @@ jobs: strategy: matrix: - node-version: [20, 22, 24] + node-version: [22, 24] include: - - node-version: 20 - node-name: LTS - node-version: 22 + node-name: LTS + - node-version: 24 node-name: Current - node-version: 24 node-name: New diff --git a/.nvmrc b/.nvmrc index 209e3ef4b6..2bd5a0a98a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4f6ccd9a72..4a0720bf13 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,13 +16,13 @@ Next section is for those who wants to help develop Element Plus. You should have: -Node.js >= 20 +Node.js >= 22 pnpm >= 11 Git > 2.20 -Some of our compiled code relies on features introduced in Node.js >= 20, so you will need to install that version or a newer one. +Some of our compiled code relies on features introduced in Node.js >= 22, so you will need to install that version or a newer one. ## Clone the Repository diff --git a/README.md b/README.md index 4d394fd82f..0327b039f3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - + diff --git a/package.json b/package.json index 178f1a6c40..893151f59a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "packageManager": "pnpm@11.0.0-alpha.12", + "packageManager": "pnpm@11.0.0-alpha.13", "workspaces": [ "packages/*", "play", @@ -106,7 +106,7 @@ "vue-tsc": "=3.1.5" }, "engines": { - "node": ">= 20" + "node": ">= 22" }, "config": { "commitizen": {