Skip to content

Commit

Permalink
adding release only when main
Browse files Browse the repository at this point in the history
  • Loading branch information
pam- committed Mar 3, 2021
1 parent 373da97 commit 7d5c698
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
- name: yarn build
run: yarn build
- name: release
if: ${{ endsWith(github.ref, '/main') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
- name: update v1 tag
if: ${{ endsWith(github.ref, '/main') }}
run: 'git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 7d5c698

Please sign in to comment.