Skip to content

Commit

Permalink
build: update to Node.js 20 TDE-1090 (#143)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
l0b0 and amfage authored May 21, 2024
1 parent ad58b03 commit 4184b7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ on:
push:
branches:
- master

name: release-please
jobs:
release-please:
Expand All @@ -15,7 +14,6 @@ jobs:
with:
release-type: node
token: ${{ secrets.GITHUB_TOKEN }}

publish-release:
needs: release-please
runs-on: ubuntu-latest
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"type": "module",
"engines": {
"node": ">=16.0.0"
"node": "^20.13.1"
},
"files": [
"build/src/**"
Expand Down

0 comments on commit 4184b7c

Please sign in to comment.