Skip to content

Commit

Permalink
conditional execution updated
Browse files Browse the repository at this point in the history
  • Loading branch information
naveedkhan8067 committed May 20, 2024
1 parent 0e315d6 commit 863d47c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/Build-And-Test-Component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 863d47c

Please sign in to comment.