diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 6756e86..b8a5a67 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -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