Update nextjs.yml #5
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 React App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "16" | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Add Missing Babel Dependency | |
| run: npm install --save-dev @babel/plugin-proposal-private-property-in-object | |
| - name: Build React App | |
| run: | | |
| unset CI | |
| npm run build |