From 863d47c7184130694976c72c2f11c4e500a059ce Mon Sep 17 00:00:00 2001 From: Naveed Date: Mon, 20 May 2024 13:37:00 +0200 Subject: [PATCH] conditional execution updated --- .../workflows/Build-And-Test-Component.yml | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/Build-And-Test-Component.yml b/.github/workflows/Build-And-Test-Component.yml index 0ac9d4a..6c88150 100644 --- a/.github/workflows/Build-And-Test-Component.yml +++ b/.github/workflows/Build-And-Test-Component.yml @@ -53,14 +53,15 @@ jobs: run: npm run test working-directory: ./components/hello-world - # This step was added to show the output - - name: Execute Variant (Demo Purposes) - run: node ./lib/index.js - working-directory: ./components/hello-world + # # This step was added to show the output + # - name: Execute Variant (Demo Purposes) + # run: node ./lib/index.js + # working-directory: ./components/hello-world - name: Package Linux Variant run: npm pack working-directory: ./components/hello-world + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} - name: Publish Linux Variant uses: actions/upload-artifact@v3 @@ -106,14 +107,15 @@ jobs: run: npm run test working-directory: ./components/hello-world - # This step was added to show the output - - name: Execute Variant (Demo Purposes) - run: node ./lib/index.js - working-directory: ./components/hello-world + # # This step was added to show the output + # - name: Execute Variant (Demo Purposes) + # run: node ./lib/index.js + # working-directory: ./components/hello-world - name: Package Mac Variant run: npm pack working-directory: ./components/hello-world + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} - name: Publish Mac Variant uses: actions/upload-artifact@v3 @@ -159,14 +161,15 @@ jobs: run: npm run test working-directory: ./components/hello-world - # This step was added to show the output - - name: Execute Variant (Demo Purposes) - run: node ./lib/index.js - working-directory: ./components/hello-world + # # This step was added to show the output + # - name: Execute Variant (Demo Purposes) + # run: node ./lib/index.js + # working-directory: ./components/hello-world - name: Package Windows Variant run: npm pack working-directory: ./components/hello-world + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} - name: Publish Windows Variant uses: actions/upload-artifact@v3