pin pnpm version (#14386)

This commit is contained in:
Slaviša Arežina
2026-05-10 20:05:03 +02:00
committed by GitHub
parent 719cbca50f
commit 5be86d4fdf

View File

@@ -6493,6 +6493,14 @@ function setup_nodejs() {
# Install global Node modules
if [[ -n "$NODE_MODULE" ]]; then
IFS=',' read -ra MODULES <<<"$NODE_MODULE"
# Pin pnpm to v10 to avoid breaking changes from newer major versions
for i in "${!MODULES[@]}"; do
if [[ "${MODULES[$i]}" =~ ^pnpm(@.*)?$ ]]; then
MODULES[$i]="pnpm@^10"
fi
done
local failed_modules=0
for mod in "${MODULES[@]}"; do
local MODULE_NAME MODULE_REQ_VERSION MODULE_INSTALLED_VERSION