Skip to content

Commit 0aeb252

Browse files
committed
chore: standardize version prefix and remove redundant push in bump workflow
1 parent fd21884 commit 0aeb252

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/bump-version.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: Create branch
7474
run: |
75-
branch_name="bump/${{ needs.prepare.outputs.next_version }}"
75+
branch_name="bump/v${{ needs.prepare.outputs.next_version }}"
7676
git checkout -b $branch_name
7777
7878
- name: Bump package
@@ -82,17 +82,16 @@ jobs:
8282
npm version ${{ inputs.bump_type }} --no-git-tag-version
8383
git add package.json
8484
git commit -m "chore: bump version to ${{ needs.prepare.outputs.next_version }}"
85-
git push origin $branch_name
8685
8786
- name: Create Pull Request
8887
uses: peter-evans/create-pull-request@v6
8988
with:
90-
title: "chore: bump version to ${{ needs.prepare.outputs.next_version }}"
89+
title: "chore: bump version to v${{ needs.prepare.outputs.next_version }}"
9190
body: |
92-
Automated version bump to ${{ needs.prepare.outputs.next_version }}
91+
Automated version bump to v${{ needs.prepare.outputs.next_version }}
9392
9493
This PR was automatically created by the version bump workflow.
95-
branch: bump/${{ needs.prepare.outputs.next_version }}
94+
branch: bump/v${{ needs.prepare.outputs.next_version }}
9695
base: main
9796
labels: bump
9897

0 commit comments

Comments
 (0)