diff --git a/README.md b/README.md index 9e4cee1c..827a2b71 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,17 @@ jobs: - run: npm test ``` +Get the LTS version: +```yaml +steps: +- uses: actions/checkout@master +- uses: actions/setup-node@master + with: + version: lts +- run: npm install +- run: npm test +``` + # License The scripts and documentation in this project are released under the [MIT License](LICENSE) diff --git a/action.yml b/action.yml index 2f5a94c8..0d97307f 100644 --- a/action.yml +++ b/action.yml @@ -3,7 +3,7 @@ description: 'Setup a Node.js environment and add it to the PATH, additionally p author: 'GitHub' inputs: version: - description: 'Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0' + description: 'Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0, lts' default: '10.x' runs: using: 'node12'