chore: add "set -e" in build.sh

This commit is contained in:
liujuping 2024-01-16 18:00:18 +08:00 committed by 刘菊萍(絮黎)
parent 84b4c76db2
commit a8b9b2b5e1
3 changed files with 37 additions and 1 deletions

34
.github/workflows/pre build.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Pre Build
on:
push:
paths:
- 'packages/**'
- '!packages/**.md'
pull_request:
paths:
- 'packages/**'
- '!packages/**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies and setup
run: npm install && npm run setup
- name: Build
run: npm run build
- name: Check build status
run: |
if [ $? -eq 0 ]; then
echo "Build succeeded!"
else
echo "Build failed!"
exit 1
fi

View File

@ -23,7 +23,7 @@ export class CommonUI implements IPublicApiCommonUI {
Form = Form;
Icon = Icon;
Input = Input;
Loading = Loading;
Loading = Loading as any;
Message = Message;
Overlay = Overlay;
Pagination = Pagination;

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
lerna run build \
--scope @alilc/lowcode-types \
--scope @alilc/lowcode-utils \