mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
20 lines
517 B
Bash
20 lines
517 B
Bash
#!/bin/bash -e -o pipefail
|
|
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...
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
|
|
npm_global_packages=$(get_toolset_value '.npm.global_packages[].name')
|
|
for module in ${npm_global_packages[@]}; do
|
|
echo "Install $module"
|
|
npm install -g $module
|
|
done
|
|
|
|
invoke_tests "Node" "Node.js"
|