From b7f47cdd386d74f3c0282f66f6a2d0ef0de3d261 Mon Sep 17 00:00:00 2001 From: Alex Sanders Date: Tue, 16 Mar 2021 12:00:11 +0000 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 52cad660..1e3b49f6 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,18 @@ This is a fork of the official GitHub [actions/setup-node](https://github.com/ma It checks the following places: -1. `.nvmrc` -2. `engines.node` in `package.json` +1. `.n-node-version` +2. `.naverc` 3. `.node-version` -4. `.n-node-version` -5. `.naverc` -6. `.nodeenvrc` +4. `.nodeenvrc` +5. `.nvmrc` (accurately [parsing nvm versions](https://github.com/ehmicky/node-version-alias)) +6. `package.json#engines.node` and finally the following environment variables: -7. `NODE_VERSION` -8. `NODIST_NODE_VERSION` +7. `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/) 😍.