diff --git a/.github/workflows/preview-release.yaml b/.github/workflows/preview-release.yaml index 1720c262..ed6113d2 100644 --- a/.github/workflows/preview-release.yaml +++ b/.github/workflows/preview-release.yaml @@ -99,6 +99,16 @@ jobs: - id: vars run: | echo tag_name=${{github.ref}}-$(git rev-list --count HEAD) >> $GITHUB_OUTPUT + - uses: actions-ecosystem/action-get-latest-tag@v1 + id: get-latest-tag + - uses: actions-ecosystem/action-bump-semver@v1 + id: bump-semver + with: + current_version: ${{ steps.get-latest-tag.outputs.tag }} + level: prepatch + - uses: actions-ecosystem/action-push-tag@v1 + with: + tag: ${{ steps.bump-semver.outputs.new_version }} - name: Upload Release uses: softprops/action-gh-release@v1 with: @@ -107,4 +117,3 @@ jobs: generate_release_notes: true prerelease: true name: ${{steps.vars.outputs.tag_name}} - tag_name: ${{steps.vars.outputs.tag_name}}