Skip to content

Commit bb6e3d9

Browse files
committed
fix(publish): build SDK before CLI in publish-cli job, skip version bump in CI
The publish-cli job was building the CLI in isolation without the SDK dist available. Since tsc -p doesn't auto-build project references, the CLI build failed when it couldn't resolve @bradygaster/squad-sdk exports. Also adds SKIP_BUILD_BUMP to smoke-test to prevent prebuild version mutation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bd7115c commit bb6e3d9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232

3333
- name: Build
3434
run: npm run build
35+
env:
36+
SKIP_BUILD_BUMP: '1'
3537

3638
- name: Run CLI smoke tests
3739
run: npx vitest run test/cli-packaging-smoke.test.ts
@@ -124,6 +126,9 @@ jobs:
124126
- name: Install dependencies
125127
run: npm ci
126128

129+
- name: Build squad-sdk (required for CLI project references)
130+
run: npm -w packages/squad-sdk run build
131+
127132
- name: Build squad-cli
128133
run: npm -w packages/squad-cli run build
129134

0 commit comments

Comments
 (0)