From 3808ce4600191e0859c68247fd146dd147d87f27 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Mon, 21 Oct 2024 14:32:39 +0200 Subject: [PATCH] Use Node 22 (current LTS) for development Drop Node 18 for testing builds. Add Node 22.x to dev engines. --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/release-management.yml | 6 +++--- .github/workflows/test.yml | 2 +- .nvmrc | 2 +- package.json | 11 +++++++++++ 6 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb61994d..b375c109 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c255b873..672a5af7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 6edea6ea..83e30481 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cdc9bbb9..082adc4c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.nvmrc b/.nvmrc index 209e3ef4..2bd5a0a9 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/package.json b/package.json index ae596111..f75862b6 100644 --- a/package.json +++ b/package.json @@ -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",