Skip to content

Commit 30bba29

Browse files
authored
feat: update node.js versions (#19)
Automated changes by [update-node-versions](https://github.com/hongaar/pdate-node-versions) GitHub action
1 parent 3f764ee commit 30bba29

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
node-version:
15-
- 16
1615
- 18
1716
- 20
1817
steps:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ available:
7474
```yaml
7575
strategy:
7676
matrix:
77-
node-version: [16, 18, 20]
77+
node-version: [18, 20]
7878
```
7979
- **Engines**
8080
This will update the `engines` field in your `package.json` file. It will use
8181
the lowest Node version as the minimal supported version.
8282
```json
8383
{
8484
"engines": {
85-
"node": ">=16"
85+
"node": ">=18"
8686
}
8787
}
8888
```
@@ -95,8 +95,8 @@ available:
9595
| tag | output example |
9696
| ---------------- | -------------- |
9797
| `$1`, `$2`, etc. | Match group |
98-
| `${versions}` | `16, 18, 20` |
99-
| `${minVersion}` | `16` |
98+
| `${versions}` | `18, 20` |
99+
| `${minVersion}` | `18` |
100100
| `${maxVersion}` | `20` |
101101

102102
> **Note**: You can specify a list of glob patterns by specifying each pattern
@@ -137,4 +137,4 @@ All inputs are optional. Example:
137137

138138
| name | description |
139139
| ---------- | -------------------------------------------------------------------------------- |
140-
| `versions` | The Node versions to update to as stringified JSON array (e.g. `"[16, 18, 20]"`) |
140+
| `versions` | The Node versions to update to as stringified JSON array (e.g. `"[18, 20]"`) |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ outputs:
4545
versions:
4646
description: The Node versions to update to as stringified JSON array
4747
runs:
48-
using: node16
48+
using: node20
4949
main: dist/index.cjs
5050
branding:
5151
icon: arrow-up

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dist"
1111
],
1212
"engines": {
13-
"node": ">=16"
13+
"node": ">=18"
1414
},
1515
"scripts": {
1616
"build": "yarn clean && yarn build:typecheck && yarn build:bundle",

0 commit comments

Comments
 (0)