diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..946a39d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,28 @@ +# Author: fruit.com.cn +# ReelShortWeb 后台 CI:lint + 构建门禁 +name: web-ci + +on: + push: + branches: [develop, main] + pull_request: + branches: [develop, main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: actions/setup-node@v4 + with: + node-version: "20" + cache: pnpm + - name: 依赖 + run: pnpm install --frozen-lockfile + - name: 类型检查 + run: pnpm ts:check + - name: 构建 + run: pnpm build:pro