4
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2025-11-07 13:06:55 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Panashe Fundira
34aba669ab
Merge b8ecc20d6f into 2028fbc5c2 2025-10-14 17:19:18 +08:00
Panashe Fundira
b8ecc20d6f
Fix README typo 2025-02-14 13:11:17 -05:00

View file

@ -125,7 +125,7 @@ steps:
- run: npm test - run: npm test
``` ```
The `node-version` input is optional. If not supplied, the node version from PATH will be used. However, it is recommended to always specify Node.js version and don't rely on the system one. The `node-version` input is optional. If not supplied, the node version from PATH will be used. However, it is recommended to always specify Node.js version and not rely on the system one.
The action will first check the local cache for a semver match. If unable to find a specific version in the cache, the action will attempt to download a version of Node.js. It will pull LTS versions from [node-versions releases](https://github.com/actions/node-versions/releases) and on miss or failure will fall back to the previous behavior of downloading directly from [node dist](https://nodejs.org/dist/). The action will first check the local cache for a semver match. If unable to find a specific version in the cache, the action will attempt to download a version of Node.js. It will pull LTS versions from [node-versions releases](https://github.com/actions/node-versions/releases) and on miss or failure will fall back to the previous behavior of downloading directly from [node dist](https://nodejs.org/dist/).