File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -27,26 +27,19 @@ export const push = async (
2727}
2828
2929export const pushTags = async ( ) => {
30- // Get the commit hash
31- const { stdout : commitHash } = await execWithOutput ( "git" , [
32- "rev-parse" ,
33- "HEAD" ,
34- ] ) ;
3530 // Get the tags that contain the commit
36- const { stdout : tags } = await execWithOutput ( "git" , [
37- "--no-pager" ,
38- "tag" ,
39- "--contains" ,
40- commitHash ,
41- ] ) ;
31+ const { stdout : tags } = await execWithOutput ( 'git' , [
32+ '--no-pager' ,
33+ 'tag' ,
34+ `HEAD` ,
35+ ] )
4236 // Separate the tags into a list
43- const tagList = tags . split ( "\n" ) ;
37+ const tagList = tags . split ( '\n' )
4438 // Push the tags individually to the remote
4539 for ( const tag of tagList ) {
46- await exec ( " git" , [ " push" , " origin" , tag ] ) ;
40+ await exec ( ' git' , [ ' push' , ' origin' , tag ] )
4741 }
48- } ;
49-
42+ }
5043
5144export const switchToMaybeExistingBranch = async ( branch : string ) => {
5245 const { stderr } = await execWithOutput ( 'git' , [ 'checkout' , branch ] , {
You can’t perform that action at this time.
0 commit comments