fix: GitHub Actions workflow - correct workspace commands

The workflow was using npm workspace commands (-w web) but the repository
doesn't have a root package.json configured for workspaces. Updated to use
working-directory instead to properly execute commands in the web directory.

Changes:
- Install dependencies: npm ci in web directory
- Run linter: npm run lint in web directory
- Run tests: npm run test in web directory
- Build project: npm run build in web directory

This fixes the "No workspaces found" error that was causing the workflow to fail.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-20 04:33:16 +03:00
parent 09b26fe5c8
commit 6bca067c6b
+7 -7
View File
@@ -33,20 +33,20 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
# Use workspace root package-lock.json
working-directory: ./web
run: npm ci
- name: Run Linter
# Use web workspace for linting
run: npm run lint -w web
working-directory: ./web
run: npm run lint
- name: Run Tests
# Use web workspace for testing
run: npm run test -w web -- --run
working-directory: ./web
run: npm run test
- name: Build Project
# Use web workspace for building
run: npm run build -w web
working-directory: ./web
run: npm run build
# ========================================
# SECURITY CHECKS (INFORMATIVE)