diff --git a/.github/workflows/build-on-pr.yml b/.github/workflows/build-on-pr.yml new file mode 100644 index 0000000..b2395e9 --- /dev/null +++ b/.github/workflows/build-on-pr.yml @@ -0,0 +1,24 @@ +name: Build on PR + +on: + pull_request: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run build script + run: npm run build