From e8e5b8b23ff87bf9b69ac262de1715d5b1292004 Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Wed, 25 Feb 2026 13:34:53 +0000 Subject: [PATCH] fix: expert-cd workflow and create-expert model tiers - Replace setup-bun + local build with setup-node in expert-cd workflow. The expert commands only need the published npm package. - Extract version with grep instead of bun -e with smol-toml. - Set defaultModelTier for create-expert experts: coordinator and planner: high skill-finder, definition-writer, expert-tester: low Co-Authored-By: Claude Opus 4.6 --- .github/workflows/expert-cd.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/expert-cd.yml b/.github/workflows/expert-cd.yml index aa4f415d..f5f6bbb2 100644 --- a/.github/workflows/expert-cd.yml +++ b/.github/workflows/expert-cd.yml @@ -19,9 +19,9 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: actions/setup-node@v4 - with: - node-version: '22' + - uses: oven-sh/setup-bun@v2 + + - run: bun install --frozen-lockfile - name: Extract version from perstack.toml id: version @@ -33,7 +33,7 @@ jobs: - name: Check if version already exists id: check run: | - OUTPUT=$(npx -y perstack expert versions ${{ matrix.definition.name }} \ + OUTPUT=$(bun ./apps/perstack/bin/cli.ts expert versions ${{ matrix.definition.name }} \ --api-key ${{ secrets.PERSTACK_API_KEY }} 2>&1) || true echo "$OUTPUT" if echo "$OUTPUT" | grep -q "^ ${{ steps.version.outputs.version }}"; then @@ -47,14 +47,14 @@ jobs: - name: Publish scope if private if: steps.check.outputs.should-publish == 'true' run: | - npx -y perstack expert publish ${{ matrix.definition.name }} \ + bun ./apps/perstack/bin/cli.ts expert publish ${{ matrix.definition.name }} \ --api-key ${{ secrets.PERSTACK_API_KEY }} || true - name: Push to draft if: steps.check.outputs.should-publish == 'true' id: push run: | - OUTPUT=$(npx -y perstack expert push ${{ matrix.definition.draft-id }} \ + OUTPUT=$(bun ./apps/perstack/bin/cli.ts expert push ${{ matrix.definition.draft-id }} \ --config ${{ matrix.definition.path }}/perstack.toml \ --api-key ${{ secrets.PERSTACK_API_KEY }}) echo "$OUTPUT" @@ -64,7 +64,7 @@ jobs: - name: Assign version if: steps.check.outputs.should-publish == 'true' run: | - npx -y perstack expert version \ + bun ./apps/perstack/bin/cli.ts expert version \ ${{ matrix.definition.draft-id }} \ ${{ steps.push.outputs.ref-id }} \ ${{ steps.version.outputs.version }} \