File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
7
+
6
8
jobs :
7
9
build-tag-release :
8
10
name : Build, tag, and release
9
11
runs-on : ubuntu-latest
10
12
steps :
11
13
- name : Checkout repository
12
14
uses : actions/checkout@v4
15
+
13
16
- name : Setup release please
14
17
uses : googleapis/release-please-action@v3
15
18
id : release
16
19
with :
17
20
release-type : node
18
21
package-name : conventional-commits-pr-action
22
+
19
23
- name : Tag major version
20
24
if : ${{ steps.release.outputs.release_created }}
21
25
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
You can’t perform that action at this time.
0 commit comments