Add js dependencies update command to the Makefile and update them #104
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: Frontend Check | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| - "main" | |
| paths: | |
| - "backend/assets/**" | |
| - "backend/static_extras/**" | |
| - "backend/templates/**" | |
| - "backend/package*.json" | |
| - "backend/.nvmrc" | |
| - "backend/postcss.config.js" | |
| - "backend/vite.config.js" | |
| - "Dockerfile*" | |
| - "docker-compose*.yml" | |
| - ".github/workflows/frontend_check.yml" | |
| pull_request: | |
| branches: | |
| - "main" | |
| paths: | |
| - "backend/assets/**" | |
| - "backend/static_extras/**" | |
| - "backend/templates/**" | |
| - "backend/package*.json" | |
| - "backend/.nvmrc" | |
| - "backend/postcss.config.js" | |
| - "backend/vite.config.js" | |
| - "Dockerfile*" | |
| - "docker-compose*.yml" | |
| - ".github/workflows/frontend_check.yml" | |
| jobs: | |
| npm_prod: | |
| name: Run `npm run build` in production mode for Node.js ${{ matrix.node }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v6 | |
| - name: Set-up Node.js environment | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: "npm" | |
| cache-dependency-path: "backend/package-lock.json" | |
| node-version-file: "backend/.nvmrc" | |
| - name: Install dependencies | |
| working-directory: ./backend | |
| run: | | |
| npm ci | |
| - name: Build frontend | |
| working-directory: ./backend | |
| run: | | |
| npm run build |