Skip to content

Set up node using nvm

Actions
Sets up a specific node.js version using nvm
v5
Latest
Star (21)

Tags

 (1)

Set up node using nvm

This action sets up a specific node.js version on GitHub Actions using nvm, very similar to @actions/setup-node. Unlike setup-node (at the time of this writing) it does support several aliases and custom mirrors like the one for node-v8. Note that this is merely intended as a placeholder until setup-node supports aliases, which is crucial for rolling testing, and mirrors, which is useful for WebAssembly testing. Has some Windows support via nvm-windows, but there are issues with versions newer than current and .nvmrc.

Inputs

node-version

The node.js version to install and use, according to nvm. Uses the version specified in .nvmrc if omitted.

node-mirror

The node.js mirror to use, e.g. https://nodejs.org/download/v8-canary/ for node on V8 lkgr.

Example usage:

uses: dcodeIO/setup-node-nvm@master
with:
  node-version: lts/*
uses: dcodeIO/setup-node-nvm@master
with:
  node-version: node
  node-mirror: https://nodejs.org/download/v8-canary/

Set up node using nvm is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Sets up a specific node.js version using nvm
v5
Latest

Tags

 (1)

Set up node using nvm is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.