Skip to content

Commit

Permalink
Fix: Ensure GitHub release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jul 30, 2016
1 parent 4cad64d commit e8e914a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/release-ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ function publishReleaseToGitHub(releaseInfo) {
gh = new GitHub({ token: process.env.ESLINT_GITHUB_TOKEN }),
repo = gh.getRepo(repoParts[0], repoParts[1]);

return repo.updateRelease("v" + releaseInfo.version, {
return repo.createRelease({
tag_name: "v" + releaseInfo.version,
body: releaseInfo.rawChangelog
}).then(function() {
console.log("Posted release notes to GitHub");
Expand Down

0 comments on commit e8e914a

Please sign in to comment.