fix: backend dependencies sync #3
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: CI Pipeline | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v3 | |
| - name: 🟢 Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| # Backend | |
| - name: Install Backend | |
| run: | | |
| cd Backend | |
| npm ci | |
| # Frontend clean install | |
| - name: Install Frontend | |
| run: | | |
| cd Frontend | |
| rm -rf node_modules package-lock.json | |
| npm install | |
| - name: Build Frontend | |
| run: | | |
| cd Frontend | |
| npm run build |