File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 41
41
delete-branch : true
42
42
title : " Update package versions"
43
43
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
Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ await Promise.all([
34
34
) ,
35
35
] ) ;
36
36
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.
37
39
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 } " ` ,
39
41
( error , stdout , stderr ) => {
40
42
if ( error ) {
41
43
reject ( error ) ;
You can’t perform that action at this time.
0 commit comments