From a5de746e9e01d6f934a296d95bb38a849b67e035 Mon Sep 17 00:00:00 2001 From: leoli Date: Tue, 12 Mar 2024 14:57:18 +0800 Subject: [PATCH] ci: add build workflow --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..e94066f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build + +on: + push: + branches: + - main + tags: + - 'v*' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - run: | + npm install -g pnpm + pnpm install + + - name: Build + run: pnpm build + - run: ls ./dist -al