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 11name : Release
2+
23on :
34 push :
45 branches :
56 - main
7+
68jobs :
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
You can’t perform that action at this time.
0 commit comments