Skip to content

Commit 9687830

Browse files
committed
better mobile sdk alpha building logic
1 parent 4f1d579 commit 9687830

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/common-ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ jobs:
7474
packages/mobile-sdk-alpha/dist
7575
key: build-deps-${{ runner.os }}-${{ hashFiles('common/**/*', 'packages/mobile-sdk-alpha/**/*', '!common/dist/**', '!packages/mobile-sdk-alpha/dist/**') }}
7676
fail-on-cache-miss: false
77-
- name: Build dependencies (fallback on cache miss)
77+
- name: Build @selfxyz/common (fallback on cache miss)
7878
if: steps.restore-build-deps.outputs.cache-hit != 'true'
79-
run: yarn workspace @selfxyz/mobile-app run build:deps
79+
run: yarn workspace @selfxyz/common build
80+
- name: Build @selfxyz/mobile-sdk-alpha
81+
run: yarn workspace @selfxyz/mobile-sdk-alpha build
8082
- name: Yarn types
8183
run: yarn types
8284

@@ -106,8 +108,10 @@ jobs:
106108
packages/mobile-sdk-alpha/dist
107109
key: build-deps-${{ runner.os }}-${{ hashFiles('common/**/*', 'packages/mobile-sdk-alpha/**/*', '!common/dist/**', '!packages/mobile-sdk-alpha/dist/**') }}
108110
fail-on-cache-miss: false
109-
- name: Build dependencies (fallback on cache miss)
111+
- name: Build @selfxyz/common (fallback on cache miss)
110112
if: steps.restore-build-deps.outputs.cache-hit != 'true'
111-
run: yarn workspace @selfxyz/mobile-app run build:deps
113+
run: yarn workspace @selfxyz/common build
114+
- name: Build @selfxyz/mobile-sdk-alpha
115+
run: yarn workspace @selfxyz/mobile-sdk-alpha build
112116
- name: Run @selfxyz/common tests
113117
run: yarn workspace @selfxyz/common test

0 commit comments

Comments
 (0)