Skip to content

Commit 3d6fd12

Browse files
committed
[skip ci] Update version script.
1 parent 1c96911 commit 3d6fd12

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/version.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
run: pnpm install --frozen-lockfile
3232

3333
- name: Bump version
34-
run: pnpm run version ${{ inputs.version }}
34+
run: |
35+
pnpm run version ${{ inputs.version }}
36+
git push origin --tags --force
3537
3638
- name: Create PR with new versions
3739
uses: peter-evans/create-pull-request@v6

scripts/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ await new Promise((resolve, reject) => {
3737
// it's not ideal to create and push a tag at the time the PR is created, but once the PR is
3838
// merged main should contain the tag as if it were created there.
3939
exec(
40-
`git commit --all --message="v${newVersion}"; git tag "v${newVersion}"; git push origin --force "v${newVersion}"`,
40+
`git commit --all --message="v${newVersion}" && git tag "v${newVersion}"`,
4141
(error, stdout, stderr) => {
4242
if (error) {
4343
reject(error);

0 commit comments

Comments
 (0)