Skip to content

Commit 01c6f96

Browse files
committed
setup node version for _buildLinux and _buildWindows
1 parent 0a02219 commit 01c6f96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared-scripts.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,17 @@ function _setShell {
133133

134134
function _buildLinux {
135135
_setShell
136+
echo "Setup Node Version $AMPLIFY_NODE_VERSION for Linux"
137+
setupNodeVersionLinux $AMPLIFY_NODE_VERSION
136138
echo "Linux Build"
137139
yarn run production-build
138140
storeCacheForLinuxBuildJob
139141
}
140142

141143
function _buildWindows {
142144
echo "Linux Build"
145+
echo "Setup Node Version $AMPLIFY_NODE_VERSION for Windows"
146+
_setupNodeVersionWindows $AMPLIFY_NODE_VERSION
143147
yarn run production-build
144148
storeCacheForWindowsBuildJob
145149
}

0 commit comments

Comments
 (0)