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

9
scripts/utils/check-node.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
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