Skip to content

Commit

Permalink
chore: add "set -e" in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Jan 16, 2024
1 parent 84b4c76 commit 39bd568
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/pre build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion packages/shell/src/api/commonUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

lerna run build \
--scope @alilc/lowcode-types \
--scope @alilc/lowcode-utils \
Expand Down

0 comments on commit 39bd568

Please sign in to comment.