Skip to content

Commit

Permalink
ci: change conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 14, 2023
1 parent 9282eea commit 5ebba30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: CI/CD

on:
workflow_dispatch:
push: # Runs whenever a commit is pushed to the repository

push:
concurrency:
group: "${{ github.workflow }} @ ${{ github.head_ref || github.ref }}"
cancel-in-progress: true
Expand Down Expand Up @@ -184,7 +183,7 @@ jobs:
path: ./test-results/*
deploy-npm:
needs: [test-integration, test-unit]
if: ${{ github.ref_name != 'develop'}}
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/beta') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -212,7 +211,7 @@ jobs:
run: npx --no -- semantic-release
deploy-gh-pages:
needs: [test-integration, test-unit]
if: ${{ github.ref_name != 'develop'}}
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/beta') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 5ebba30

Please sign in to comment.