Update package dependencies, refactor TypeScript configuration, and enhance API server code with improved type definitions. Modify GitHub Actions workflow to verify API build success and streamline build scripts for better maintainability.
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -26,16 +26,17 @@ jobs:
|
||||
- name: Run linting
|
||||
run: npm run lint
|
||||
|
||||
- name: Build frontend
|
||||
run: npm run build
|
||||
env:
|
||||
VITE_APP_NAME: ScriptShare
|
||||
VITE_APP_URL: https://scriptshare.example.com
|
||||
VITE_ANALYTICS_ENABLED: false
|
||||
|
||||
- name: Build API
|
||||
- name: Build API (TypeScript)
|
||||
run: npm run build:api
|
||||
|
||||
- name: Verify API build
|
||||
run: |
|
||||
if [ ! -f "dist/server.js" ]; then
|
||||
echo "API build failed - server.js not found"
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ API TypeScript build successful"
|
||||
|
||||
docker-build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
|
Reference in New Issue
Block a user