Skip to content

Commit

Permalink
Use Node 22 (current LTS) for development
Browse files Browse the repository at this point in the history
Drop Node 18 for testing builds. Add Node 22.x to dev engines.
  • Loading branch information
adamkudrna committed Nov 4, 2024
1 parent 783a2a7 commit 01b1499
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [ 18, 20 ]
node: [ 20, 22 ]
steps:
- name: Clone repository
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm

- name: Print Node.js and npm version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm

- name: Install
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
registry-url: https://registry.npmjs.org

Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm

- name: Install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm

- name: Print Node.js and npm version
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@
"engines": {
"node": ">=20"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "22.x",
"onFail": "error"
},
"packageManager": {
"name": "npm",
"onFail": "error"
}
},
"scripts": {
"build": "webpack --mode=production && webpack --mode=development",
"copy": "npm run copy:css && npm run copy:js",
Expand Down

0 comments on commit 01b1499

Please sign in to comment.