Skip to content

Commit

Permalink
feat: commitizen bump process to ghthub action
Browse files Browse the repository at this point in the history
  • Loading branch information
quino0627 committed Sep 22, 2021
1 parent 21bb696 commit 276ed9e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/dumpversion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump version

on:
push:
branches:
- master

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v2
with:
token: "${{ secrets.ACTION_ACCESS_TOKEN }}"
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
branch: master
github_token: ${{ secrets.ACTION_ACCESS_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: v${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 276ed9e

Please sign in to comment.