Skip to content

Commit

Permalink
Add config/release.js to help with publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Oct 1, 2015
1 parent cff08d8 commit 85e6e7d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* jshint node:true */

var execSync = require('child_process').execSync;

function run(command) {
console.log('running: "' + command + '"');
var output = execSync(command, { encoding: 'utf8' });
console.log(output);
}

module.exports = {
// Publish the new release to NPM after a successful push
afterPush: function(project, versions) {
run('ember build');
run('cp ./build/*.* ../ember-qunit-builds/');
run('cd ../ember-qunit-builds && git add --all');
run('cd ../ember-qunit-builds && git commit --message="Release ' + versions.next + '"');
run('cd ../ember-qunit-builds && git tag ' + versions.next);
run('cd ../ember-qunit-builds && git push origin master --tags');
}
};

0 comments on commit 85e6e7d

Please sign in to comment.