From ff21a33275a8644352cad5fd2527bc41b181654d Mon Sep 17 00:00:00 2001 From: Andreas Pfau Date: Mon, 15 Apr 2024 16:28:00 +0200 Subject: [PATCH] Update build&publish-juno-ui-components.yaml --- .../build&publish-juno-ui-components.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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: |