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,

View File

@ -66,7 +66,6 @@
"build.css": "npm run css.sass && npm run css.minify",
"build.debug": "npm run clean && stencil build --debug",
"build.docs.json": "stencil build --docs-json dist/docs.json",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"clean": "node scripts/clean.js",
"cdnloader": "node scripts/copy-cdn-loader.js",
"css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css",