File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,29 @@ export async function hasDiff() {
45
45
return ! ! diff ;
46
46
}
47
47
48
+ // TODO(yifany): remove console log output that is for debugging purpose
48
49
export async function pushReleaseTagsToGithub ( ) {
50
+ console . log ( 'Pushing release tags to GitHub ...' )
51
+
49
52
// Get tags pointing to HEAD
50
53
// When running the release script, these tags should be release tags created by changeset
54
+ console . log ( `Running git tag --points-at HEAD at ${ process . cwd ( ) } ` )
51
55
const { stdout : rawTags } = await exec ( `git tag --points-at HEAD` ) ;
56
+ console . log ( `stdout for git tag: ${ rawTags } ` )
52
57
53
58
const tags = rawTags . split ( / \r ? \n / ) ;
54
59
60
+ console . log ( `Running git rev-parse --abbrev-ref HEAD at ${ process . cwd ( ) } ` )
55
61
let { stdout : currentBranch } = await exec ( `git rev-parse --abbrev-ref HEAD` ) ;
62
+ console . log ( `stdout for git rev-parse: ${ currentBranch } ` )
56
63
currentBranch = currentBranch . trim ( ) ;
57
64
58
- await exec ( `git push origin ${ currentBranch } ${ tags . join ( ' ' ) } --no-verify` , {
65
+ console . log ( `Running git push origin ${ currentBranch } ${ tags . join ( ' ' ) } --no-verify at ${ root } ` )
66
+ const result = await exec ( `git push origin ${ currentBranch } ${ tags . join ( ' ' ) } --no-verify` , {
59
67
cwd : root
60
68
} ) ;
69
+ console . log ( `stdout for git push: ${ result . stdout } ` )
70
+ console . log ( `stderr for git push: ${ result . stderr } ` )
71
+
72
+ console . log ( `Pushing release tags to GitHub done.` )
61
73
}
You can’t perform that action at this time.
0 commit comments