name: Build

on:
  push:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 22
      - run: cd parcoursup-app && npm install && npm run build
      - uses: actions/upload-artifact@v3
        with:
          name: dist
          path: parcoursup-app/dist/