Check node version

This commit is contained in:
Andras Schmelczer 2025-12-14 13:53:35 +00:00
parent 42a77a5cd5
commit 0e0a85df82
5 changed files with 20 additions and 12 deletions

View file

@ -6,11 +6,7 @@ set -o pipefail
NO_COLOR=1
FORCE_COLOR=0
node_version=$(node -v | sed 's/^v\([0-9]*\).*/\1/')
if [ "$node_version" != "22" ]; then
echo "Error: This script requires Node.js version 22, found: $node_version"
exit 1
fi
./scripts/utils/check-node.sh
# Check if the argument is provided
if [ $# -eq 0 ]; then