Skip to content

Commit b6deca5

Browse files
committed
change release to public and use it to create changelog
1 parent c31bd87 commit b6deca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildScript/publish-to-github.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (args.tag && args.assets) {
3232
tag: '',
3333
name: args.tag,
3434
draft: false,
35-
prerelease: true,
35+
prerelease: false,
3636
assets: [],
3737
apiUrl: 'https://api.github.com'
3838
};
@@ -53,7 +53,7 @@ if (args.tag && args.assets) {
5353
}
5454

5555
function getChangeLog(rel_config, lastRel) {
56-
lastRel = lastRel || 'master';
56+
lastRel = lastRel || 'origin/master';
5757
var cmd = 'git log --pretty=format:"%h - %s [%cd]" --date=short --max-count 100 ' + lastRel + '..HEAD';
5858

5959
console.log( 'CMD: ' + cmd);
@@ -71,7 +71,7 @@ function getChangeLog(rel_config, lastRel) {
7171
function checkGitHub(rel_config, callback) {
7272

7373
request({
74-
uri: rel_config.apiUrl + '/repos/' + rel_config.owner + '/' + rel_config.repo + '/releases',
74+
uri: rel_config.apiUrl + '/repos/' + rel_config.owner + '/' + rel_config.repo + '/releases/latest',
7575
method: 'GET',
7676
headers: {
7777
'Authorization': 'token ' + rel_config.token,

0 commit comments

Comments
 (0)