Create the Component ContentBlock #59
This file contains hidden or 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: Build Frontend | |
| on: | |
| pull_request: | |
| paths: | |
| - 'frontend/**' | |
| types: [opened, reopened, synchronize] | |
| push: | |
| paths: | |
| - 'frontend/**' | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| build-frontend: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install Dependencies | |
| run: npm ci | |
| working-directory: frontend | |
| - name: Run ESLint | |
| run: npx eslint . | |
| working-directory: frontend | |
| - name: Run Prettier | |
| run: npx prettier --check . | |
| working-directory: frontend | |
| - name: Run Build | |
| run: npm run build | |
| working-directory: frontend |