diff --git a/package.json b/package.json index 0ca10510..06194be2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-release-notes", - "version": "0.2.2", + "version": "0.3.2", "description": "Node module to publish release notes based on commits between the last two tags.", "main": "./github-release-notes.js", "scripts": { diff --git a/src/index.js b/src/index.js index a9dd7614..1ae0faf0 100644 --- a/src/index.js +++ b/src/index.js @@ -201,6 +201,7 @@ function getOptions(args) { */ function GithubReleaseNotes(options) { this.options = options || getOptions(process.argv); + this.options.force = this.options.force || false; var github = new Github({ token: this.options.token, @@ -238,6 +239,8 @@ GithubReleaseNotes.prototype.release = function() { }) .catch(function (error) { console.error(error); + + return that.options.force; }); };