chore(release): update target branch to current branch for release tag

This commit is contained in:
Brandy Carney
2019-10-14 18:52:24 -04:00
parent ce0bed4cf3
commit 43ecf6ce5f
2 changed files with 7 additions and 2 deletions

View File

@@ -122,10 +122,16 @@ async function publishGithub(version, tag, changelog) {
token: process.env.GH_TOKEN
});
let branch = await execa.stdout('git', ['symbolic-ref', '--short', 'HEAD']);
if (!branch) {
branch = 'master';
}
await octokit.repos.createRelease({
owner: 'ionic-team',
repo: 'ionic',
target_commitish: 'master',
target_commitish: branch,
tag_name: tag,
name: version,
body: changelog,