Update dependency next to v14 [SECURITY] #8100
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
| # This file is part of the Stooa codebase. | |
| # | |
| # (c) 2020 - present Runroom SL | |
| # | |
| # For the full copyright and license information, please view the LICENSE | |
| # file that was distributed with this source code. | |
| # This workflow will install NODE with all dependencies and ensures that Next.js is building correctly. | |
| name: Frontend build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| frontend-build: | |
| name: Node ${{ matrix.node }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| strategy: | |
| matrix: | |
| node: ['18.11'] | |
| steps: | |
| - name: Checkout the repository to Github workspace | |
| uses: actions/checkout@v3 | |
| - name: Setup the Node environment | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install all NPM dependencies | |
| uses: bahmutov/npm-install@v1 | |
| with: | |
| working-directory: frontend | |
| - name: Build Next.js application | |
| run: npm run build |