fix: Fixes relesae flows (#1799)

This commit is contained in:
Kamron Batman 2024-05-28 15:24:03 -07:00 committed by GitHub
parent 5843ec0784
commit b3a817ee2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 8 deletions

View file

@ -15,7 +15,7 @@ jobs:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install NGBV
@ -41,6 +41,9 @@ jobs:
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
tags: true
- name: Pin Conventional Changelog Commits Dependency
run: |
npm i conventional-changelog-conventionalcommits@v7.0.2
- name: Conventional Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v5.3.0
@ -51,20 +54,20 @@ jobs:
skip-commit: true
release-count: 1
- name: Delete v${{ steps.changelog.outputs.version }} Tag
uses: dev-drprasad/delete-tag-and-release@v1.1
uses: dev-drprasad/delete-tag-and-release@v1
with:
delete_release: true
tag_name: v${{ steps.changelog.outputs.version }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Delete v0.1.0 Tag
uses: dev-drprasad/delete-tag-and-release@v1.1
uses: dev-drprasad/delete-tag-and-release@v1
with:
delete_release: true
tag_name: v0.1.0
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2.0.5
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ steps.nbgv.outputs.Version }}