Skip to content

Commit 494f637

Browse files
boyney123claude
andcommitted
fix(ci): pack and install SDK before building example catalog
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b72bf35 commit 494f637

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

.github/workflows/verify-build.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,23 @@ jobs:
3333
run: pnpm run test:ci
3434
- name: Build All Packages
3535
run: pnpm run build:bin
36+
- name: Package SDK
37+
run: pnpm pack
38+
working-directory: packages/sdk
3639
- name: Package Core
3740
run: pnpm pack
3841
working-directory: packages/core
39-
- name: Rename package artifact
40-
run: mv packages/core/*.tgz package.tgz
41-
- name: Upload package artifact
42+
- name: Rename package artifacts
43+
run: |
44+
mv packages/sdk/*.tgz sdk-package.tgz
45+
mv packages/core/*.tgz core-package.tgz
46+
- name: Upload package artifacts
4247
uses: actions/upload-artifact@v4
4348
with:
44-
name: eventcatalog-core-package-artifact
45-
path: package.tgz
49+
name: eventcatalog-packages-artifact
50+
path: |
51+
sdk-package.tgz
52+
core-package.tgz
4653
4754
build-eventcatalog:
4855
name: Build EventCatalog
@@ -58,13 +65,15 @@ jobs:
5865
uses: actions/setup-node@v4
5966
with:
6067
node-version: 24.x
61-
- name: Download package artifact
68+
- name: Download package artifacts
6269
uses: actions/download-artifact@v4
6370
with:
64-
name: eventcatalog-core-package-artifact
65-
- name: Install @eventcatalog-core
71+
name: eventcatalog-packages-artifact
72+
- name: Install @eventcatalog packages
6673
working-directory: examples/default/
67-
run: npm install ../../package.tgz
74+
run: |
75+
npm install ../../sdk-package.tgz
76+
npm install ../../core-package.tgz
6877
- name: Build EventCatalog
6978
working-directory: examples/default/
7079
run: npx eventcatalog build

0 commit comments

Comments
 (0)