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 <zgsm@sangfor.com.cn>
This commit is contained in:
林凯90331 2026-05-14 17:13:30 +08:00
parent 86c68723a4
commit 5890d776dd

View File

@ -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