File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,28 +37,20 @@ jobs:
3737 - name : Add build artifacts
3838 run : git add dist -f
3939
40- - name : Generate changelog
41- id : changelog
40+ - name : Bump version
41+ id : version_bump
4242 uses : ./
4343 with :
4444 release_type : ' patch'
45- github-token : ${{ secrets.GITHUB_TOKEN }}
46- create-summary : true
4745
48- - name : Push tag
49- if : steps.changelog.outputs.skipped != 'true'
50- run : |
51- git commit -m "chore: bump version to ${{ steps.changelog.outputs.tag }}" || echo "No changes"
52- git tag ${{ steps.changelog.outputs.tag }}
53- git push origin HEAD --tags
46+
5447
5548 - name : Create Release
5649 uses : actions/create-release@v1
57- if : steps.changelog.outputs.skipped != 'true' && steps.changelog.outputs.tag != ''
5850 env :
5951 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6052 with :
61- tag_name : ${{ steps.changelog .outputs.tag }}
62- release_name : ${{ steps.changelog .outputs.tag }}
63- body : ${{ steps.changelog.outputs.clean_changelog }}
53+ tag_name : v ${{ steps.version_bump .outputs.new_version }}
54+ release_name : v ${{ steps.version_bump .outputs.new_version }}
55+ body : ' Initial release '
6456
You can’t perform that action at this time.
0 commit comments