Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Fallback to .node-version if .nvmrc is missing
Browse files Browse the repository at this point in the history
Fixes #79

Co-Authored-By: Levi Buzolic <levibuzolic@gmail.com>
  • Loading branch information
brycekahle and levibuzolic committed Feb 6, 2018
1 parent 3681ff8 commit 3b563b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ install_dependencies() {
then
NODE_VERSION=$(cat .nvmrc)
echo "Attempting node version '$NODE_VERSION' from .nvmrc"
elif [ -f .node-version ]
then
NODE_VERSION=$(cat .node-version)
echo "Attempting node version '$NODE_VERSION' from .node-version"
fi

if nvm install $NODE_VERSION
Expand Down

0 comments on commit 3b563b1

Please sign in to comment.