CircleCI-Public / node-orb

An orb for working with Node.js on CircleCI
https://circleci.com/orbs/registry/orb/circleci/node
MIT License
52 stars 80 forks source link

feat: support .node-version file #218

Closed totto2727 closed 1 month ago

totto2727 commented 4 months ago

SEMVER Update Type:

Description:

support .node-version file

Motivation:

Most Node.js runtime managers support either .nvmrc or .node-version (nodenv etc...) or both (fnm, mise, asdf etc...) are supported.

However, currently only .nvmrc is supported.

Although it is preferable to use .nvmrc since we use nvm internally, both .nvmrc and .node-version are often in the same format.

It is possible that I am missing a specification, but I don't think it will be a problem in many cases.

Test

https://app.circleci.com/pipelines/github/totto2727/node-orb

Checklist: