From 98e59139b7b2ab93003e77282d7b827510f0c7ab Mon Sep 17 00:00:00 2001 From: Rob Date: Thu, 16 Jun 2022 09:40:03 +0200 Subject: [PATCH] Update README.md Specify more clearly which version syntaxes are supported, link to the specification. Closes #521 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6816069b..1d632dae 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,17 @@ For information regarding locally cached versions of Node.js on GitHub hosted ru ### Supported version syntax -The `node-version` input supports the following values: +The `node-version` input supports the [Semantic Versioning Specification](https://github.com/npm/node-semver), for example: - Major versions: `12`, `14`, `16` - More specific versions: `10.15`, `14.2.0`, `16.3.0` + +And also these other syntaxes: + - NVM LTS syntax: `lts/erbium`, `lts/fermium`, `lts/*`, `lts/-n` - Latest release: `*` or `latest`/`current`/`node` + **Note:** Like the other values, `*` will get the latest [locally-cached Node.js version](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#nodejs), or the latest version from [actions/node-versions](https://github.com/actions/node-versions/blob/main/versions-manifest.json), depending on the [`check-latest`](docs/advanced-usage.md#check-latest-version) input. `current`/`latest`/`node` always resolve to the latest [dist version](https://nodejs.org/dist/index.json).