Update nextjs.yml

This commit is contained in:
MacRimi 2025-02-13 21:08:21 +01:00 committed by GitHub
parent 659c3c2e27
commit 64198729c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,14 +36,15 @@ jobs:
cd web
npm list next-themes || npm install next-themes
npm list @radix-ui/react-accordion || npm install @radix-ui/react-accordion
npm list @radix-ui/react-alert-dialog || npm install @radix-ui/react-alert-dialog
- name: Verify next-themes installation
- name: Verify dependencies installation
run: |
cd web
if [ -d "node_modules/next-themes" ]; then
echo "✅ next-themes found!"
if [ -d "node_modules/next-themes" ] && [ -d "node_modules/@radix-ui/react-accordion" ] && [ -d "node_modules/@radix-ui/react-alert-dialog" ]; then
echo "✅ All required dependencies are installed!"
else
echo "❌ ERROR: next-themes NOT FOUND!"
echo "❌ ERROR: Some dependencies are missing!"
exit 1
fi