From e68bcbcecda06b00b2357f199a93f079b45975e1 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Sun, 13 Oct 2024 18:52:20 +0800 Subject: [PATCH] ci: add build workflow --- .github/workflows/build.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..6b89952 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + - uses: pnpm/action-setup@v4 + - run: pnpm i + - run: pnpm build