name: React Continuous Integration on: push: branches: [ "develop", "main" ] pull_request: branches: [ "develop", "main" ] # Allows to run this workflow manually from the Actions tab workflow_dispatch: jobs: build: #we should call it `build_and_test` but we dont have any tests (TODO) runs-on: ubuntu-latest strategy: matrix: node-version: [20.9.0] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm ci - name: Build project (prod) run: npm run build:prod