diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml new file mode 100644 index 0000000..2941dcf --- /dev/null +++ b/.github/workflows/pr-build.yml @@ -0,0 +1,34 @@ +name: Build on PR to main + +on: + pull_request: + branches: [main] + types: [opened, reopened, synchronize, ready_for_review] + +concurrency: + group: pr-build-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build \ No newline at end of file