Skip to content

Commit fc720ee

Browse files
committed
add ci check to ensure production build always works
1 parent 4cfe529 commit fc720ee

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Main Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- "**.md"
9+
pull_request:
10+
branches:
11+
- master
12+
paths-ignore:
13+
- "**.md"
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Install Bun
22+
uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version-file: "package.json"
25+
26+
- run: bun install
27+
28+
- run: bun run build:prod
29+
working-directory: src

src/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"build:prod": "ng build ngrx-signalr-core --configuration production",
89
"test": "ng test",
910
"lint": "ng lint",
1011
"e2e": "ng e2e"
@@ -38,4 +39,4 @@
3839
"tslint": "~6.1.3",
3940
"typescript": "~5.5.4"
4041
}
41-
}
42+
}

0 commit comments

Comments
 (0)