Skip to content
Permalink
Browse files

Build: Fix version number on release (fixes #4921)

  • Loading branch information...
nzakas committed Jan 11, 2016
1 parent 2d626a3 commit ebd01b714e38f49107c5125c0d40dd97fcb7bac0
Showing with 8 additions and 4 deletions.
  1. +7 −3 Makefile.js
  2. +1 −1 templates/blogpost.md.ejs
@@ -283,6 +283,11 @@ function release() {
*/
function prerelease(version) {

if (!version) {
echo("Missing prerelease version.");
exit(1);
}

echo("Updating dependencies");
exec("npm install && npm prune");

@@ -294,7 +299,6 @@ function prerelease(version) {

// override the version for prereleases
releaseInfo.version = version[0] === "v" ? version : "v" + version;

echo("Release is " + releaseInfo.version);

echo("Generating changelog");
@@ -1126,6 +1130,6 @@ target.major = function() {
release("major");
};

target.prerelease = function(version) {
prerelease(version);
target.prerelease = function(args) {
prerelease(args[0]);
};
@@ -12,7 +12,7 @@ We just pushed ESLint <%- version %>, which is a <%- releaseType %> release upgr
<%
function linkify(line) {
line = line.replace(/#(\d+)/g, "[#$1](https://github.com/eslint/eslint/issues/$1)");
return line.replace(/([a-z0-9]+)/, "[#$1](https://github.com/eslint/eslint/commit/$1)");
return line.replace(/([a-z0-9]+)/, "[$1](https://github.com/eslint/eslint/commit/$1)");
}
function outputList(items) {

0 comments on commit ebd01b7

Please sign in to comment.
You can’t perform that action at this time.