Skip to content

Commit

Permalink
Docs: Remove run-sequence from recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jan 1, 2018
1 parent 76eb4d6 commit 2eba29e
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions docs/recipes/automate-release-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Below you have a simple recipe that bumps the project version, commits the chang
``` javascript

var gulp = require('gulp');
var runSequence = require('run-sequence');
var conventionalChangelog = require('gulp-conventional-changelog');
var conventionalGithubReleaser = require('conventional-github-releaser');
var bump = require('gulp-bump');
Expand Down Expand Up @@ -48,17 +47,17 @@ gulp.task('commit-changes', function () {
.pipe(git.commit('[Prerelease] Bumped version number'));
});

gulp.task('push-changes', function (cb) {
git.push('origin', 'master', cb);
gulp.task('push-changes', function (done) {
git.push('origin', 'master', done);
});

gulp.task('create-new-tag', function (cb) {
gulp.task('create-new-tag', function (done) {
var version = getPackageJsonVersion();
git.tag(version, 'Created Tag for version: ' + version, function (error) {
if (error) {
return cb(error);
return done(error);
}
git.push('origin', 'master', {args: '--tags'}, cb);
git.push('origin', 'master', {args: '--tags'}, done);
});

function getPackageJsonVersion () {
Expand All @@ -68,22 +67,13 @@ gulp.task('create-new-tag', function (cb) {
};
});

gulp.task('release', function (callback) {
runSequence(
'bump-version',
'changelog',
'commit-changes',
'push-changes',
'create-new-tag',
'github-release',
function (error) {
if (error) {
console.log(error.message);
} else {
console.log('RELEASE FINISHED SUCCESSFULLY');
}
callback(error);
});
});
gulp.task('release', gulp.series(
'bump-version',
'changelog',
'commit-changes',
'push-changes',
'create-new-tag',
'github-release'
));

```

0 comments on commit 2eba29e

Please # to comment.