Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 568 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 568 Bytes

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 }}'