From c4186bcca2573a54456ee9ea96bafb491d3348b4 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 20 Dec 2025 12:49:56 +0900 Subject: [PATCH] feat(ci): add test and typecheck gates to publish workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Requires test and typecheck jobs to pass before publishing - Prevents publishing if tests or type checks fail - Improves release quality assurance 🤖 Generated with assistance of OhMyOpenCode (https://github.com/code-yeongyu/oh-my-opencode) --- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 751ca23..19d1bb8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,8 +24,43 @@ permissions: id-token: write jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + env: + BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi" + + - name: Run tests + run: bun test + + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + env: + BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi" + + - name: Type check + run: bun run typecheck + publish: runs-on: ubuntu-latest + needs: [test, typecheck] if: github.repository == 'code-yeongyu/oh-my-opencode' steps: - uses: actions/checkout@v4