Create CNAME #75
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: React CI/CD | |
| on: | |
| pull_request: | |
| branches: | |
| - handyman | |
| push: | |
| branches: | |
| - handyman | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: npm install # Changed from npm ci to npm install | |
| - name: Lint code | |
| run: npm run lint | |
| - name: Build project | |
| run: npm run build | |
| - name: Upload production-ready build as artifact | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: build | |
| path: build/ |