4 ms·
A lot of people are questioning the value of using nvm in CI, but I think the main reason is just that the .nvmrc file is shared between dev/CI. It's a minor be
by bin_bash 3y ago
A lot of people are questioning the value of using nvm in CI, but I think the main reason is just that the .nvmrc file is shared between dev/CI. It's a minor benefit, but still nice.
That said, rtx is so much simpler for this:
curl https://rtx.pub/rtx-latest-linux-x64 > /usr/bin/rtx
rtx install
rtx x -- npm install
rtx x -- npm run test
it'll automatically use the .nvmrc/.node-version file. If developers want to use nvm locally, they still can.
- codethief 3y ago+1 for rtx / asdf. We have been using asdf across all our projects and pipelines.
- koolba 3y agoYou can also cat the .nvmrc file and use that as an input to the action to setup nodejs. It’s literally a single line with the version number and there’s nothing nvm specific about it other than the name.