Skip to content

Commit 871d54e

Browse files
committed
ci: another release fix
1 parent 40662d6 commit 871d54e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
name: Release
2+
23
on:
34
push:
45
branches:
56
- main
7+
68
jobs:
79
build-tag-release:
810
name: Build, tag, and release
911
runs-on: ubuntu-latest
1012
steps:
1113
- name: Checkout repository
1214
uses: actions/checkout@v4
15+
1316
- name: Setup release please
1417
uses: googleapis/release-please-action@v3
1518
id: release
1619
with:
1720
release-type: node
1821
package-name: conventional-commits-pr-action
22+
1923
- name: Tag major version
2024
if: ${{ steps.release.outputs.release_created }}
2125
run: |
22-
git config user.name "github-actions[bot]"
23-
git config user.email "github-actions[bot]@users.noreply.github.com"
24-
git tag -a v${{ steps.release.outputs.new_version }} -m "Release v${{ steps.release.outputs.new_version }}"
25-
git push origin v${{ steps.release.outputs.new_version }}
26+
git config user.name github-actions[bot]
27+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
28+
git tag -d v${{ steps.release.outputs.major }}
29+
git push origin :v${{ steps.release.outputs.major }} || true

0 commit comments

Comments
 (0)