From 5890d776ddf8728d5c23f021cf68d44dcbc2068b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=87=AF90331?= <90331@sangfor.com> Date: Thu, 14 May 2026 17:13:30 +0800 Subject: [PATCH] ci(publish-npm): add ssh setup and review builtin generation Add SSH agent setup before build so generate-review-builtin.ts can clone the private costrict-review repo. Also run the generator explicitly with continue-on-error to ensure the bundled review skills file exists before Bun.build. Co-authored-by: CoStrict --- .github/workflows/publish-npm.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 052933594..1562b0b10 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -73,6 +73,15 @@ jobs: with: bun-version: latest + - name: Setup SSH for review agent generation + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.MY_SSH_PRIVATE_KEY }} + + - name: Generate review builtin files + run: bun run scripts/generate-review-builtin.ts + continue-on-error: true + - name: Install dependencies run: bun install --frozen-lockfile # - name: Type check