Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add latest to default #12

Merged
merged 1 commit into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ jobs:

## Versions

By default, versions will be updated to reflect the 'even' versions of Node
which are not end-of-life. This means that versions that will not be promoted to
LTS are ignored.
By default, versions will be updated to reflect the 'current' and 'LTS' versions
of Node which are not end-of-life.

Optionally, you can configure the action to use another strategy for selecting
Node versions.
Expand Down Expand Up @@ -88,13 +87,13 @@ updaters are enabled. These updaters are available:

## Inputs

| name | default | description |
| ----------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `versions` | <pre>lts<br/>lts/-1<br/>lts/-2</pre> | Node versions to select, should be resolvable by [node-version-alias](https://www.npmjs.com/package/node-version-alias). Specify each version on a new line. |
| `versions.filter-eol` | `true` | Filter out Node versions which are end-of-life. [Source](https://github.com/nodejs/Release/blob/main/schedule.json) used for filtering. |
| `updaters.workflows` | `true` | Update GitHub workflows. |
| `updaters.workflows.variable` | `"node-version"` | Use this name as the matrix strategy variable to update the Node versions in. |
| `updaters.engines` | `true` | Update package.json `engines`. |
| name | default | description |
| ----------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `versions` | <pre>latest<br/>lts<br/>lts/-1<br/>lts/-2</pre> | Node versions to select, should be resolvable by [node-version-alias](https://www.npmjs.com/package/node-version-alias). Specify each version on a new line. |
| `versions.filter-eol` | `true` | Filter out Node versions which are end-of-life. [Source](https://github.com/nodejs/Release/blob/main/schedule.json) used for filtering. |
| `updaters.workflows` | `true` | Update GitHub workflows. |
| `updaters.workflows.variable` | `"node-version"` | Use this name as the matrix strategy variable to update the Node versions in. |
| `updaters.engines` | `true` | Update package.json `engines`. |

All inputs are optional. Example:

Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ inputs:
description: Node versions to select
required: true
default: |
latest
lts
lts/-1
lts/-2
Expand Down