Skip to content

Commit a8b9b2b

Browse files
committed
chore: add "set -e" in build.sh
1 parent 84b4c76 commit a8b9b2b

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.github/workflows/pre build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pre Build
2+
3+
on:
4+
push:
5+
paths:
6+
- 'packages/**'
7+
- '!packages/**.md'
8+
pull_request:
9+
paths:
10+
- 'packages/**'
11+
- '!packages/**.md'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Install dependencies and setup
22+
run: npm install && npm run setup
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Check build status
28+
run: |
29+
if [ $? -eq 0 ]; then
30+
echo "Build succeeded!"
31+
else
32+
echo "Build failed!"
33+
exit 1
34+
fi

packages/shell/src/api/commonUI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class CommonUI implements IPublicApiCommonUI {
2323
Form = Form;
2424
Icon = Icon;
2525
Input = Input;
26-
Loading = Loading;
26+
Loading = Loading as any;
2727
Message = Message;
2828
Overlay = Overlay;
2929
Pagination = Pagination;

scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -e
4+
35
lerna run build \
46
--scope @alilc/lowcode-types \
57
--scope @alilc/lowcode-utils \

0 commit comments

Comments
 (0)