Skip to content

Commit 13459ea

Browse files
Peter Martonhekike
authored andcommitted
fix(scripts): change default node version from 6 to 8
1 parent c17b98f commit 13459ea

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/env.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22
set -e
3+
4+
DEFAULT_NODE_VERSION=8
5+
36
if [[ -z $ENV_ESSENTIAL_EXPORTS ]]; then
47
if [[ $CIRCLE_BRANCH ]]; then # Runs on CircleCI
58
export IS_CI="1"
@@ -14,7 +17,7 @@ if [[ -z $ENV_ESSENTIAL_EXPORTS ]]; then
1417
export COMMIT_AUTHOR=$(git log -1 --pretty=%an)
1518
export REPOSITORY_URL=$CIRCLE_REPOSITORY_URL
1619
if [[ -z $TOOL_NODE_VERSION ]]; then
17-
export TOOL_NODE_VERSION=6
20+
export TOOL_NODE_VERSION=$DEFAULT_NODE_VERSION
1821
fi
1922
if [[ -z $NODE_VERSION ]]; then
2023
export NODE_VERSION=$TOOL_NODE_VERSION
@@ -32,9 +35,9 @@ if [[ -z $ENV_ESSENTIAL_EXPORTS ]]; then
3235
export REPOSITORY_URL=$(git config --get remote.origin.url)
3336
export REPOSITORY_PUSH_URL=$REPOSITORY_URL
3437
if [[ -z $TOOL_NODE_VERSION ]]; then
35-
export TOOL_NODE_VERSION=6
38+
export TOOL_NODE_VERSION=$DEFAULT_NODE_VERSION
3639
fi
37-
export NODE_VERSION_FW=6
40+
export NODE_VERSION_FW=$DEFAULT_NODE_VERSION
3841
if [[ -z $NODE_VERSION ]]; then
3942
export NODE_VERSION=$TOOL_NODE_VERSION
4043
fi

0 commit comments

Comments
 (0)