From 9779ec8420e7af77dfdd59722451c58f25fffe8d Mon Sep 17 00:00:00 2001 From: Ryan Lau <47727459+ryanlau@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:05:05 -0400 Subject: [PATCH] add gh action to make sure repo is buildable on pr --- .github/workflows/build-on-pr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build-on-pr.yml diff --git a/.github/workflows/build-on-pr.yml b/.github/workflows/build-on-pr.yml new file mode 100644 index 0000000..d4c2ba5 --- /dev/null +++ b/.github/workflows/build-on-pr.yml @@ -0,0 +1,25 @@ +name: Build on Pull Request + +on: + pull_request: + branches: ['main'] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' # Use the Node.js version you're working with + cache: 'npm' # Use the Node.js version you're working with + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build