Skip to content

Read .nvmrc

Actions
Read node version from .nvmrc file
v1
Latest
Star (9)

DEPRECATED this action is no longer required as it's now supported natively by actions/setup-node@v2

Read nvmrc action

Simple action to read value from .nvmrc file.

Usage

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.

About

Read node version from .nvmrc file
v1
Latest

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.