From 37a8efd7475aabcb4c845e33dbc1666a5022c0a1 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 21 Jun 2024 10:32:14 +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 `actions/setup-node`: ``` for path in .github/workflows/*.y*ml; do yq --inplace '((.jobs.*.steps[] | select(.uses == "actions/setup-node*")) | del(.name) | .with.node-version) = "22.x"' "$path" done ``` 4. 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 ``` --- .github/workflows/publish.yml | 9 ++++----- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db876f92..1386fb1d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: linz/action-typescript@dee99184c4305aea6c380a52db9b2d7abaaa3e78 # v3 with: - node-version: 20.x + node-version: 22.x # FIXME: catalog.json is not pushed to the repository (temporary solution) - name: Create STAC Catalog uses: docker://ghcr.io/linz/argo-tasks:v4 @@ -39,14 +39,13 @@ jobs: steps: - uses: linz/action-typescript@dee99184c4305aea6c380a52db9b2d7abaaa3e78 # v3 with: - node-version: 20.x + node-version: 22.x - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-depth: 0 - - name: Use Node.js 18.x - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: - node-version: '18.x' + node-version: '22.x' - name: Setup kubectl uses: azure/setup-kubectl@901a10e89ea615cf61f57ac05cecdf23e7de06d8 # v3 with: diff --git a/package-lock.json b/package-lock.json index 637a84d6..14893a68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@linzjs/style": "^4.0.0" }, "engines": { - "node": "^20.13.1" + "node": "^22.2.0" } }, "node_modules/@eslint-community/eslint-utils": { diff --git a/package.json b/package.json index e442307b..68ff8a9c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,6 @@ "@linzjs/style": "^4.0.0" }, "engines": { - "node": "^20.13.1" + "node": "^22.2.0" } }