From 26d39fbc9b4f692c48c95252314e74a5e782ce54 Mon Sep 17 00:00:00 2001 From: Cat Chen Date: Thu, 4 Aug 2022 10:31:26 -0700 Subject: [PATCH] Set up build Workflow (#3) --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5763cc8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + pull_request: + branches: [main] + push: + branches: [main, "[0-9]+-[0-9]+-*"] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + check-latest: true + + - name: Install dependencies + run: yarn install + + - name: Build + run: yarn build + + - name: Package + run: yarn package + + - uses: CatChen/check-git-status-action@v1.0.0 + with: + fail-if-not-clean: true + push-if-not-clean: true