Skip to content

Commit 1c96911

Browse files
committed
[skip ci] Update version script.
1 parent 0f3be56 commit 1c96911

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/version.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,3 @@ jobs:
4141
delete-branch: true
4242
title: "Update package versions"
4343
body: "Merging this PR will publish packages to npm at the new version."
44-
- name: Push tags
45-
run: |
46-
git switch gh-action-version
47-
git push origin --tags

scripts/version.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ await Promise.all([
3434
),
3535
]);
3636
await new Promise((resolve, reject) => {
37+
// it's not ideal to create and push a tag at the time the PR is created, but once the PR is
38+
// merged main should contain the tag as if it were created there.
3739
exec(
38-
`git commit --all --message="v${newVersion}"; git tag "v${newVersion}";`,
40+
`git commit --all --message="v${newVersion}"; git tag "v${newVersion}"; git push origin --force "v${newVersion}"`,
3941
(error, stdout, stderr) => {
4042
if (error) {
4143
reject(error);

0 commit comments

Comments
 (0)