mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
20 lines
615 B
Bash
20 lines
615 B
Bash
#!/bin/bash -e -o pipefail
|
|
################################################################################
|
|
## File: install-node.sh
|
|
## Desc: Install Node.js
|
|
################################################################################
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
defaultVersion=$(get_toolset_value '.node.default')
|
|
|
|
echo "Installing Node.js $defaultVersion"
|
|
brew_smart_install "node@$defaultVersion"
|
|
brew link node@$defaultVersion --force --overwrite
|
|
|
|
echo Installing yarn...
|
|
yarn_installer_path=$(download_with_retry "https://yarnpkg.com/install.sh")
|
|
bash $yarn_installer_path
|
|
|
|
invoke_tests "Node" "Node.js"
|