Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(superchain):
$NVM_USE_VERSION
selects Node.js version (#2726)
We added multiple Node versions into the Superchain image, and made it possible to switch between them using NVM. Doing so would require putting `nvm use 14` at the top of every script that wanted to run against a newer Node version, and so would require modification to scripts in our branches. Another, more effective, way to configure the Node version is to be able to do it without modifying the scripts themselves, but by specifying it via the runtime environment. In this case, via environment variable that can be set on the Docker environment. The `$NVM_USE_VERSION` environment variable will lead to an implicit execution of `nvm use $NVM_USE_VERSION` at container startup time, if present. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information