mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: bump node version for pnpm@11 compatibility
see https://pnpm.io/11.x/installation#compatibility
This commit is contained in:
2
.github/workflows/lint-commit-message.yml
vendored
2
.github/workflows/lint-commit-message.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/lint-typecheck.yml
vendored
2
.github/workflows/lint-typecheck.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/pr-docs-build.yml
vendored
4
.github/workflows/pr-docs-build.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/publish-build-product.yml
vendored
2
.github/workflows/publish-build-product.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
.github/workflows/publish-docs-deploy.yml
vendored
2
.github/workflows/publish-docs-deploy.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/publish-npm-nightly.yml
vendored
4
.github/workflows/publish-npm-nightly.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/publish-npm.yml
vendored
4
.github/workflows/publish-npm.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/publish-pr-commit-pkg.yml
vendored
2
.github/workflows/publish-pr-commit-pkg.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
2
.github/workflows/publish-size-report.yml
vendored
2
.github/workflows/publish-size-report.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/staging-docs.yml
vendored
2
.github/workflows/staging-docs.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/test-coverage.yml
vendored
2
.github/workflows/test-coverage.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/test-ssr.yml
vendored
2
.github/workflows/test-ssr.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/test-unit.yml
vendored
6
.github/workflows/test-unit.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<img src="https://npmx.dev/api/registry/badge/version/element-plus" />
|
||||
</a>
|
||||
<a href="https://github.com/element-plus/element-plus">
|
||||
<img src="https://img.shields.io/badge/node-%20%3E%3D%2020-47c219" />
|
||||
<img src="https://img.shields.io/badge/node-%20%3E%3D%2022-47c219" />
|
||||
</a>
|
||||
<a href="https://npmcharts.com/compare/element-plus?minimal=true">
|
||||
<img src="https://img.shields.io/npm/dm/element-plus.svg" />
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user