mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[MacOS] Rework NodeJS install (#4380)
This commit is contained in:
@@ -11,10 +11,10 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION/install.sh | bash
|
||||
if [ $? -eq 0 ]; then
|
||||
. ~/.bashrc
|
||||
nvm --version
|
||||
nodeVersions=("v10" "v12" "v14")
|
||||
nodeVersions=$(get_toolset_value '.node.nvm_versions[]')
|
||||
for version in ${nodeVersions[@]}
|
||||
do
|
||||
nvm install $version
|
||||
nvm install v${version}
|
||||
done
|
||||
|
||||
# set system node as default
|
||||
|
||||
Reference in New Issue
Block a user