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

Simple Github action to read value from .nvmrc file

License

Notifications You must be signed in to change notification settings

browniebroke/read-nvmrc-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Simple Github action to read value from .nvmrc file

Resources

License

Stars

Watchers

Forks

Packages

No packages published