From 189a2756ed3fcc659e827eded45fc6edb0abe443 Mon Sep 17 00:00:00 2001 From: zaaack Date: Mon, 30 Sep 2024 19:23:57 +0800 Subject: [PATCH] chore: add ci --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..10837a4 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: publish +on: + push: + branches: [ master ] + paths-ignore: + - 'README.md' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: install + run: pnpm i + - name: test + run: pnpm test