Skip to content

Commit

Permalink
Update build&publish-utils.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf authored Apr 15, 2024
1 parent 617f99f commit 0daa183
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build&publish-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,15 @@ jobs:
scope: "@${{ github.repository_owner }}"
- name: build libs
run: |
ls -la
# install npm packages
npm install
# build libs if asset type is "app"
if test -d ./apps; then
echo "====apps"
ls -la apps
if [ "$ASSET_TYPE" = "app" ] || [ "$ASSET_TYPE" = "apps" ]; then npm run build-libs; fi
fi
if test -d ./libs; then
echo "====libs"
ls -la libs
fi
# install npm packages
npm install
# build libs if asset type is "app"
if [ "$ASSET_TYPE" = "app" ] || [ "$ASSET_TYPE" = "apps" ]; then npm run build-libs; fi
- name: test asset
run: |
npm -w $ASSET_NAME run test --if-present
Expand Down

0 comments on commit 0daa183

Please sign in to comment.