Closed elwayman02 closed 9 years ago
afterPush
hook was added in v0.2.4.npm adduser
?rsvp
as a dev dependencyember-data-model-fragments
I know it is cheating, but assuming you run Node 0.12+ or iojs you can just use execSync
and call npm publish
.
I use the following in quite a few projects:
var execSync = require('child_process').execSync;
module.exports = {
// Publish the new release to NPM after a successful push
afterPush: function() {
console.log('publishing to npm');
var output = execSync('npm publish', { encoding: 'utf8' });
console.log(output);
}
};
@slindberg I'm using ember-cli-release 0.2.3, which is what got automatically installed thanks to the addon blueprint :(
All the more reason for https://github.com/ember-cli/ember-cli/pull/4891, I suppose.
I tried the following config:
...with publish added as an npm devDependency for the project.
Unfortunately, it does not seem to get triggered, and I've had to publish manually.