diff --git a/.github/workflows/build&publish-juno-ui-components.yaml b/.github/workflows/build&publish-juno-ui-components.yaml index fe3040fba..75cd957e0 100644 --- a/.github/workflows/build&publish-juno-ui-components.yaml +++ b/.github/workflows/build&publish-juno-ui-components.yaml @@ -51,21 +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: |