From 4184b7c4e409faa75af4b127b2887c916b481881 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 21 May 2024 03:34:57 +0000 Subject: [PATCH] build: update to Node.js 20 TDE-1090 (#143) 1. Update the engine: ``` jq '.engines.node = "^20.13.1"' 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) = "20.x"' "$path" done ``` --------- Co-authored-by: Alice Fage --- .github/workflows/push.yml | 4 ++-- .github/workflows/release-please.yml | 4 +--- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4fe3911..b6d1585 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,10 +1,10 @@ name: Bush - on: push: - jobs: build: runs-on: ubuntu-latest steps: - uses: linz/action-typescript@9bf69b0f313b3525d3ba3116f26b1aff7eb7a6c0 # v3 + with: + node-version: 20.x diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6bd5f5b..1f282ba 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -2,7 +2,6 @@ on: push: branches: - master - name: release-please jobs: release-please: @@ -15,7 +14,6 @@ jobs: with: release-type: node token: ${{ secrets.GITHUB_TOKEN }} - publish-release: needs: release-please runs-on: ubuntu-latest @@ -25,7 +23,7 @@ jobs: uses: linz/action-typescript@9bf69b0f313b3525d3ba3116f26b1aff7eb7a6c0 # v3 with: registry-url: 'https://npm.pkg.github.com' - + node-version: 20.x - name: Publish to Github run: npm publish env: diff --git a/package-lock.json b/package-lock.json index fc538ad..74b7fcc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@types/node": "^20.12.11" }, "engines": { - "node": ">=16.0.0" + "node": "^20.13.1" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index d9c57d0..ec05ee7 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "type": "module", "engines": { - "node": ">=16.0.0" + "node": "^20.13.1" }, "files": [ "build/src/**"