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 cd web
npm list next-themes || npm install next-themes 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-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: | run: |
cd web cd web
if [ -d "node_modules/next-themes" ]; then if [ -d "node_modules/next-themes" ] && [ -d "node_modules/@radix-ui/react-accordion" ] && [ -d "node_modules/@radix-ui/react-alert-dialog" ]; then
echo "✅ next-themes found!" echo "✅ All required dependencies are installed!"
else else
echo "❌ ERROR: next-themes NOT FOUND!" echo "❌ ERROR: Some dependencies are missing!"
exit 1 exit 1
fi fi