Skip to content

Commit c445a46

Browse files
authored
Merge pull request #4 from Wieedze/v2-upgradeable-factory
fix(ci): compile contracts + sync ABIs before SDK build
2 parents 7170acf + 0f78dd0 commit c445a46

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ jobs:
3131
- name: Install workspace deps
3232
run: bun install --frozen-lockfile
3333

34+
- name: Compile contracts (produces artifacts + ABIs)
35+
# ABIs are .gitignore'd — the SDK imports `./abis/*.json`, which
36+
# only exist after hardhat compile + sync-abis. Without this step
37+
# the next job fails with TS2307 "Cannot find module './abis/...'".
38+
run: bun contracts:compile
39+
40+
- name: Sync compiled ABIs into the SDK
41+
run: bun sdk:sync
42+
3443
- name: Build SDK (generates dist/ consumed by the webapp)
3544
run: bun sdk:build
3645

0 commit comments

Comments
 (0)