From c61cacf9227123a09d1914f49230ade01526441f Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 21 Jun 2024 10:54:21 +1200 Subject: [PATCH] build: update to Node.js 22 TDE-1193 1. Update the engine: ``` jq '.engines.node = "^22.2.0"' package.json | sponge package.json ``` 2. Update the lock file: ``` npm install ``` 3. Update the uses of `linz/action-typescript`: ``` for path in .github/workflows/*.y*ml; do yq --inplace '(.jobs.*.steps[] | select(.uses == "linz/action-typescript*").with.node-version) = "22.x"' "$path" done ``` Verified with `git grep --word-regexp -e 14 -e 16 -e 18 -e 20`. --- .github/workflows/main.yml | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1c745905..6f48d2941 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ jobs: steps: - uses: linz/action-typescript@9bf69b0f313b3525d3ba3116f26b1aff7eb7a6c0 # v3.1.0 with: - node-version: 20.x + node-version: 22.x - name: Download actionlint run: docker build --tag actionlint - < .github/workflows/actionlint.dockerfile - name: Run actionlint to check workflow files @@ -35,7 +35,7 @@ jobs: steps: - uses: linz/action-typescript@9bf69b0f313b3525d3ba3116f26b1aff7eb7a6c0 # v3.1.0 with: - node-version: 20.x + node-version: 22.x # Configure access to AWS / EKS - name: Setup kubectl uses: azure/setup-kubectl@901a10e89ea615cf61f57ac05cecdf23e7de06d8 # v3 diff --git a/package-lock.json b/package-lock.json index 8a6feeb48..ba421bf35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "tsx": "^4.6.2" }, "engines": { - "node": "^20.13.1" + "node": "^22.2.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index c89b32846..2dc316531 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "private": true, "engines": { - "node": "^20.13.1" + "node": "^22.2.0" }, "scripts": { "build": "tsc",