Skip to content

Commit

Permalink
Build: Add CI release scripts (fixes #6884)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Aug 12, 2016
1 parent 3e879fc commit 8073e89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 7 additions & 2 deletions Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,12 @@ function generateRuleIndexPage(basedir) {

/**
* Creates a release version tag and pushes to origin.
* @param {boolean} [ciRelease] Set to true to indicate this is a CI release.
* @returns {void}
*/
function release() {
function release(ciRelease) {

const releaseInfo = ReleaseOps.release();
const releaseInfo = ReleaseOps.release(null, ciRelease);

echo("Generating site");
target.gensite();
Expand Down Expand Up @@ -1111,6 +1112,10 @@ target.release = function() {
release();
};

target.ciRelease = function() {
release(true);
};

target.prerelease = function(args) {
prerelease(args[0]);
};
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test": "node Makefile.js test",
"lint": "node Makefile.js lint",
"release": "node Makefile.js release",
"ci-release": "node Makefile.js ciRelease",
"alpharelease": "node Makefile.js prerelease -- alpha",
"betarelease": "node Makefile.js prerelease -- beta",
"docs": "node Makefile.js docs",
Expand All @@ -29,10 +30,7 @@
"lib",
"messages"
],
"repository": {
"type": "git",
"url": "https://github.com/eslint/eslint"
},
"repository": "eslint/eslint",
"homepage": "http://eslint.org",
"bugs": "https://github.com/eslint/eslint/issues/",
"dependencies": {
Expand Down Expand Up @@ -82,7 +80,7 @@
"dateformat": "^1.0.8",
"ejs": "^2.3.3",
"eslint-plugin-node": "^2.0.0",
"eslint-release": "^0.5.0",
"eslint-release": "^0.10.0",
"esprima": "^2.4.1",
"esprima-fb": "^15001.1001.0-dev-harmony-fb",
"gh-got": "^2.2.0",
Expand Down

0 comments on commit 8073e89

Please sign in to comment.