Skip to content

Commit 43ecf6c

Browse files
committed
chore(release): update target branch to current branch for release tag
1 parent ce0bed4 commit 43ecf6c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.scripts/release.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,16 @@ async function publishGithub(version, tag, changelog) {
122122
token: process.env.GH_TOKEN
123123
});
124124

125+
let branch = await execa.stdout('git', ['symbolic-ref', '--short', 'HEAD']);
126+
127+
if (!branch) {
128+
branch = 'master';
129+
}
130+
125131
await octokit.repos.createRelease({
126132
owner: 'ionic-team',
127133
repo: 'ionic',
128-
target_commitish: 'master',
134+
target_commitish: branch,
129135
tag_name: tag,
130136
name: version,
131137
body: changelog,

core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
"build.css": "npm run css.sass && npm run css.minify",
6767
"build.debug": "npm run clean && stencil build --debug",
6868
"build.docs.json": "stencil build --docs-json dist/docs.json",
69-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
7069
"clean": "node scripts/clean.js",
7170
"cdnloader": "node scripts/copy-cdn-loader.js",
7271
"css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css",

0 commit comments

Comments
 (0)