Skip to content

Commit

Permalink
chore: change branches for CI/CD (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv authored Feb 22, 2022
1 parent 273cd8b commit 9d5a2f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Push workflow
on:
push:
branches:
- develop
- main
- dev
- master

jobs:
release-version:
name: Releasing a version
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'chore') || (github.ref_name == 'main' && !contains(github.event.head_commit.message, 'chore(release)')) }}
if: ${{ !contains(github.event.head_commit.message, 'chore') || (github.ref_name == 'master' && !contains(github.event.head_commit.message, 'chore(release)')) }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -30,11 +30,11 @@ jobs:
git config --global user.email "${{ secrets.USER_EMAIL }}"
- name: Run pre-release script
if: ${{ github.ref_name == 'develop' }}
if: ${{ github.ref_name == 'dev' }}
run: yarn run pre-release

- name: Run release script
if: ${{ github.ref_name == 'main' }}
if: ${{ github.ref_name == 'master' }}
run: yarn run release

- name: Push to remote branch
Expand Down
14 changes: 0 additions & 14 deletions CHANGELOG.md

This file was deleted.

0 comments on commit 9d5a2f6

Please sign in to comment.