mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 02:20:20 +08:00
[macOS] do not iterate over npm packages on Ventura (#8175)
This commit is contained in:
@@ -10,10 +10,12 @@ brew link node@$defaultVersion --force --overwrite
|
||||
echo Installing yarn...
|
||||
curl -fsSL 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
|
||||
if ! is_Ventura || ! is_VenturaArm64; then
|
||||
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
|
||||
fi
|
||||
|
||||
invoke_tests "Node" "Node.js"
|
||||
|
||||
Reference in New Issue
Block a user