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 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
Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ await Promise.all([
3434 ) ,
3535] ) ;
3636await 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 ) ;
You can’t perform that action at this time.
0 commit comments