Skip to content
Set up your GitHub Actions workflow with a specific version of node.js using nvm.
JavaScript Shell
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
node_modules/@actions/core
.gitignore
.nvmrc
README.md
action.yml
index.js
install.sh
package.json

README.md

Set up node using nvm

This action sets up a specific node.js version on GitHub Actions using nvm, very similar to the original @actions/setup-node. Unlike setup-node (at the time of this writing) it does support lts/* (latest LTS), node (latest stable) and custom mirrors like the one for v8-canary, but does not work on Windows.

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/
You can’t perform that action at this time.