Read .nvmrc
ActionsTags
(2)DEPRECATED this action is no longer required as it's now supported natively by actions/setup-node@v2
Simple action to read value from .nvmrc
file.
Example of workflow:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Read node version from `.nvmrc` file
- id: nvmrc
uses: browniebroke/read-nvmrc-action@v1
- uses: actions/setup-node@v1
with:
# use the output from the action
node-version: '${{ steps.nvmrc.outputs.node_version }}'
Read .nvmrc 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.