Skip to content

Commit ae5c148

Browse files
committed
try adjusting build steps to include new package
1 parent e6187f7 commit ae5c148

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
cache: 'pnpm'
2727
- name: Install dependencies
2828
run: pnpm install --frozen-lockfile
29+
- name: Build electron-trpc
30+
run: pnpm --filter @posthog/electron-trpc build
2931
- name: Build agent
3032
run: pnpm --filter agent build
3133
- name: Build array

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- "apps/array/**"
99
- "packages/agent/**"
10+
- "packages/electron-trpc/**"
1011
- "pnpm-lock.yaml"
1112
- "package.json"
1213
- "turbo.json"
@@ -71,6 +72,9 @@ jobs:
7172
- name: Install dependencies
7273
run: pnpm install --frozen-lockfile
7374

75+
- name: Build electron-trpc package
76+
run: pnpm --filter @posthog/electron-trpc run build
77+
7478
- name: Build agent package
7579
run: pnpm --filter @posthog/agent run build
7680

apps/array/src/main/services/dock-badge/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class DockBadgeService {
1919

2020
this.hasBadge = true;
2121
if (process.platform === "darwin" || process.platform === "linux") {
22-
app.dock.setBadge("•");
22+
app.dock?.setBadge("•");
2323
}
2424
log.info("Dock badge shown");
2525
}
@@ -29,7 +29,7 @@ export class DockBadgeService {
2929

3030
this.hasBadge = false;
3131
if (process.platform === "darwin" || process.platform === "linux") {
32-
app.dock.setBadge("");
32+
app.dock?.setBadge("");
3333
}
3434
log.info("Dock badge cleared");
3535
}

0 commit comments

Comments
 (0)