@@ -170,31 +170,30 @@ gulp.task('watch:docs', ['serve'], function() {
170170 gulp . watch ( config . docs . styles , [ 'styles:docs' ] ) ;
171171} ) ;
172172
173- /*
174- * Automate npm & bower updates.
175- * $ gulp release:bump --type major - using gulp-bump versioning
176- * $ gulp release:bump --version 1.1.1 - using explicit version number
177- */
173+
178174gulp . task ( 'release:bump' , function ( ) {
179175
180176 return gulp . src ( './*.json' )
181177 . pipe ( $ . bump ( getUpdateType ( ) ) )
182178 . pipe ( gulp . dest ( './' ) ) ;
183179} ) ;
184180
185- gulp . task ( 'release:commit' , function ( ) {
181+ gulp . task ( 'release:commit' , [ 'release:bump' ] , function ( ) {
186182
187183 return gulp . src ( '.' )
188184 . pipe ( $ . git . add ( ) )
189185 . pipe ( $ . git . commit ( ':octocat: Bump to ' + getPackageJsonVersion ( ) ) ) ;
190186} ) ;
191187
192- gulp . task ( 'release:push' , function ( cb ) {
188+ gulp . task ( 'release:push' , [ 'release:bump' , 'release:commit' ] , function ( cb ) {
193189 return $ . git . push ( 'origin' , 'master' , cb ) ;
194190} ) ;
195191
196- gulp . task ( 'release' , [ 'release:bump' , 'release:commit' , 'release:push' ] , function ( ) {
197-
198- } ) ;
192+ /*
193+ * Automate npm & bower updates.
194+ * $ gulp release --type major - using gulp-bump versioning
195+ * $ gulp release --version 1.1.1 - using explicit version number
196+ */
197+ gulp . task ( 'release' , [ 'release:bump' , 'release:commit' , 'release:push' ] ) ;
199198
200199gulp . task ( 'default' , [ 'build' ] ) ;
0 commit comments