Skip to content

Commit

Permalink
Fix: Mark prerelease notes as "prereleases" on GitHub (#21)
Browse files Browse the repository at this point in the history
GitHub has a feature where releases can be marked as "prereleases", which slightly changes how they are displayed. This updates the release tool to apply that marking when the current release is a prerelease.
  • Loading branch information
not-an-aardvark committed Mar 30, 2018
1 parent 2dbdc42 commit 628b493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/release-ops.js
Expand Up @@ -460,7 +460,8 @@ function publishReleaseToGitHub(releaseInfo) {

return repo.createRelease({
tag_name: tag,
body: releaseInfo.rawChangelog
body: releaseInfo.rawChangelog,
prerelease: !!semver.prerelease(releaseInfo.version)
}).then(function() {
console.log("Posted release notes to GitHub");
}).catch(function(ex) {
Expand Down

0 comments on commit 628b493

Please sign in to comment.