Update README.md

This commit is contained in:
Alex Sanders 2021-03-16 12:00:11 +00:00 committed by GitHub
parent 6a8b79956a
commit b7f47cdd38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,17 +16,18 @@ This is a fork of the official GitHub [actions/setup-node](https://github.com/ma
It checks the following places: It checks the following places:
1. `.nvmrc` 1. `.n-node-version`
2. `engines.node` in `package.json` 2. `.naverc`
3. `.node-version` 3. `.node-version`
4. `.n-node-version` 4. `.nodeenvrc`
5. `.naverc` 5. `.nvmrc` (accurately [parsing nvm versions](https://github.com/ehmicky/node-version-alias))
6. `.nodeenvrc` 6. `package.json#engines.node`
and finally the following environment variables: and finally the following environment variables:
7. `NODE_VERSION` 7. `NODIST_NODE_VERSION`
8. `NODIST_NODE_VERSION` 8. `NODE_VERSION`
9. `DEFAULT_NODE_VERSION`
> Behind the scenes, it uses [@ehmicky](https://github.com/ehmicky)'s [`preferred-node-version`](https://www.npmjs.com/package/) 😍. > Behind the scenes, it uses [@ehmicky](https://github.com/ehmicky)'s [`preferred-node-version`](https://www.npmjs.com/package/) 😍.