Fix-saas-publish #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Public Web Pull Request | |
on: | |
pull_request: | |
paths: | |
- "public-web/**" | |
jobs: | |
validate-public-web: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies and run build | |
working-directory: public-web | |
run: | | |
npm ci | |
npm run lint | |
npm run build | |
- name: Verify build output | |
run: | | |
if [ ! -d "public-web/build" ]; then | |
echo "Build failed: 'build' directory not found." | |
exit 1 | |
fi |