Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcodeio/setup-node-nvm
Set up your GitHub Actions workflow with a specific version of node.js using nvm.
https://github.com/dcodeio/setup-node-nvm
actions nodejs nvm
Last synced: 3 months ago
JSON representation
Set up your GitHub Actions workflow with a specific version of node.js using nvm.
- Host: GitHub
- URL: https://github.com/dcodeio/setup-node-nvm
- Owner: dcodeIO
- Created: 2019-09-11T11:17:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T22:29:52.000Z (about 1 year ago)
- Last Synced: 2024-10-24T15:42:29.059Z (4 months ago)
- Topics: actions, nodejs, nvm
- Language: JavaScript
- Homepage:
- Size: 165 KB
- Stars: 21
- Watchers: 5
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Set up node using nvm
This action sets up a specific node.js version on GitHub Actions using [nvm](https://github.com/nvm-sh/nvm), very similar to [@actions/setup-node](https://github.com/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](https://github.com/nodejs/node-v8). Note that this is merely intended as a placeholder until setup-node supports [aliases](https://github.com/actions/setup-node/issues/26), which is crucial for rolling testing, and [mirrors](https://github.com/actions/setup-node/issues/65), which is useful for WebAssembly testing. Has some Windows support via [nvm-windows](https://github.com/coreybutler/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:
```yaml
uses: dcodeIO/setup-node-nvm@master
with:
node-version: lts/*
``````yaml
uses: dcodeIO/setup-node-nvm@master
with:
node-version: node
node-mirror: https://nodejs.org/download/v8-canary/
```