mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 02:07:55 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user