Skip to content

Commit 7a68235

Browse files
committed
Update tag creation workflow to create a PR
1 parent 56bfa64 commit 7a68235

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/tag-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# @author Madhavan Sridharan
2-
name: Create Version Tag
2+
name: Prepare Version Tag
33

44
on:
55
workflow_dispatch:
@@ -32,7 +32,10 @@ jobs:
3232
git config user.name "GitHub Actions"
3333
git config user.email "[email protected]"
3434
35-
- name: Bump version and tag
35+
- name: Create version bump branch
36+
id: create_branch
3637
run: |
37-
npm version ${{ github.event.inputs.release_type }} -m "chore(release): %s"
38-
git push origin main --follow-tags
38+
git fetch origin main
39+
git checkout -b release/bump-tag-version origin/main
40+
npm version ${{ github.event.inputs.release_type }} -m "chore(release): bump tag version to %s"
41+
git push origin -u release/bump-tag-version --follow-tags

0 commit comments

Comments
 (0)