Skip to content

Commit 20a43af

Browse files
committed
[build] Use Node.js v22 engine as minimum version
- The mainenance of Node.js v20 (LTS) ends 2026-04-30, so it's time to update the engine - Some of the used dependencies declare Node.js v22 as minimum version, it doesn't make sence to continue using v20 as minimum Node.js engine version, f.i.: ``` npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: 'got@15.0.0', npm warn EBADENGINE required: { node: '>=22' }, npm warn EBADENGINE current: { node: 'v20.19.2', npm: '10.8.2' } npm warn EBADENGINE } ``` Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
1 parent cc3cebd commit 20a43af

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.github/workflows/circular-dependency-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- uses: actions/checkout@v6
1717

1818
# Set up Node
19-
- name: Use Node.js 20
19+
- name: Use Node.js 22
2020
uses: actions/setup-node@v6
2121
with:
22-
node-version: 20
22+
node-version: 22
2323

2424
# Run install dependencies
2525
- name: Install dependencies

.github/workflows/continuous-integration-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [macos-latest, windows-latest, ubuntu-latest]
27-
node: [ 20 ]
27+
node: [ 22 ]
2828

2929
# Steps represent a sequence of tasks that will be executed as part of the job
3030
steps:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Use Node.js
3838
uses: actions/setup-node@v6
3939
with:
40-
node-version: 20
40+
node-version: 22
4141
- name: Install dependencies
4242
run: |
4343
npm install -g typescript "vsce" "ovsx"
@@ -90,7 +90,7 @@ jobs:
9090
- name: Use Node.js
9191
uses: actions/setup-node@v6
9292
with:
93-
node-version: 20
93+
node-version: 22
9494
- name: Install dependencies
9595
run: |
9696
npm install -g typescript "vsce" "ovsx"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ There are only a few guidelines that we need contributors to follow.
88
## First Time Setup
99
1. Install prerequisites:
1010
* latest [Visual Studio Code](https://code.visualstudio.com/)
11-
* [Node.js](https://nodejs.org/) v20 or higher
11+
* [Node.js](https://nodejs.org/) v22 or higher
1212
* It is recommended to set up `nvm` to manage different versions of node, which can be installed by following the instructions [here](https://github.com/nvm-sh/nvm#installing-and-updating).
1313
* To use the current recommended version for this project (in`./nvmrc`), run `nvm use`.
1414
* [Red Hat Authentication](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-redhat-account) VS Code plugin (VS Code will prompt to install this when you launch the extension if you don't have it)

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"bugs": "https://github.com/redhat-developer/vscode-openshift-tools/issues",
1515
"engines": {
1616
"vscode": "^1.82.3",
17-
"npm": ">=9.6.4",
18-
"node": ">=20.0.0"
17+
"npm": ">=10",
18+
"node": ">=22"
1919
},
2020
"badges": [
2121
{
@@ -100,7 +100,7 @@
100100
"@types/fs-extra": "^11.0.4",
101101
"@types/lodash": "^4.17.24",
102102
"@types/mocha": "^10.0.10",
103-
"@types/node": "^20.19.37",
103+
"@types/node": "^22.13.14",
104104
"@types/proxyquire": "^1.3.31",
105105
"@types/react": "^18.3.23",
106106
"@types/react-copy-to-clipboard": "^5.0.7",

0 commit comments

Comments
 (0)