File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,22 @@ module.exports = function (grunt) {
176
176
}
177
177
}
178
178
) ;
179
+ } ) . then ( function ( ) {
180
+ grunt . log . writeln ( 'Pushed to git.' ) ;
181
+ } ) ;
182
+ }
183
+
184
+ function publishNpm ( ) {
185
+ var cwd = process . cwd ( ) ;
186
+ process . chdir ( require ( 'path' ) . join ( cwd , 'dist/npm' ) ) ;
187
+ grunt . log . writeln ( 'Publishing to NPM.' ) ;
188
+ return npmUtils . setAuthToken ( )
189
+ . then ( function ( ) {
190
+ return npmUtils . publish ( ) ;
191
+ } )
192
+ . then ( function ( ) {
193
+ process . chdir ( cwd ) ;
194
+ grunt . log . writeln ( 'Published to npm.' ) ;
179
195
} ) ;
180
196
}
181
197
@@ -184,6 +200,7 @@ module.exports = function (grunt) {
184
200
var done = this . async ( ) ;
185
201
commitRelease ( )
186
202
. then ( function ( ) {
203
+ grunt . log . writeln ( 'Done publishing.' ) ;
187
204
done ( ) ;
188
205
} ) . catch ( function ( e ) {
189
206
grunt . log . error ( e ) ;
You can’t perform that action at this time.
0 commit comments