Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading