Skip to content

Commit 849ecef

Browse files
committed
Fix: Update release workflow
1 parent b0cd7b8 commit 849ecef

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)