fix: upgrade Node to 22 if <20 — Tailwind CSS v4 requires Node 20+
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 1m25s
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 1m25s
This commit is contained in:
parent
855ee71e18
commit
a9d61e2a0e
@ -57,8 +57,10 @@ jobs:
|
|||||||
default-jre-headless \
|
default-jre-headless \
|
||||||
python3 curl pkg-config
|
python3 curl pkg-config
|
||||||
|
|
||||||
# Node.js
|
# Node.js 22 — Tailwind CSS v4 and Naive UI require Node >= 20
|
||||||
if ! command -v node >/dev/null 2>&1; then
|
NODE_MAJOR=$(node --version 2>/dev/null | sed 's/v\([0-9]*\).*/\1/' || echo "0")
|
||||||
|
if [ "$NODE_MAJOR" -lt 20 ]; then
|
||||||
|
echo "Node $NODE_MAJOR is too old, installing Node 22..."
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||||
apt-get install -y -qq nodejs
|
apt-get install -y -qq nodejs
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user