Skip to content

Commit 2eba29e

Browse files
committed
Docs: Remove run-sequence from recipes
1 parent 76eb4d6 commit 2eba29e

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

docs/recipes/automate-release-workflow.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Below you have a simple recipe that bumps the project version, commits the chang
66
``` javascript
77

88
var gulp = require('gulp');
9-
var runSequence = require('run-sequence');
109
var conventionalChangelog = require('gulp-conventional-changelog');
1110
var conventionalGithubReleaser = require('conventional-github-releaser');
1211
var bump = require('gulp-bump');
@@ -48,17 +47,17 @@ gulp.task('commit-changes', function () {
4847
.pipe(git.commit('[Prerelease] Bumped version number'));
4948
});
5049

51-
gulp.task('push-changes', function (cb) {
52-
git.push('origin', 'master', cb);
50+
gulp.task('push-changes', function (done) {
51+
git.push('origin', 'master', done);
5352
});
5453

55-
gulp.task('create-new-tag', function (cb) {
54+
gulp.task('create-new-tag', function (done) {
5655
var version = getPackageJsonVersion();
5756
git.tag(version, 'Created Tag for version: ' + version, function (error) {
5857
if (error) {
59-
return cb(error);
58+
return done(error);
6059
}
61-
git.push('origin', 'master', {args: '--tags'}, cb);
60+
git.push('origin', 'master', {args: '--tags'}, done);
6261
});
6362

6463
function getPackageJsonVersion () {
@@ -68,22 +67,13 @@ gulp.task('create-new-tag', function (cb) {
6867
};
6968
});
7069

71-
gulp.task('release', function (callback) {
72-
runSequence(
73-
'bump-version',
74-
'changelog',
75-
'commit-changes',
76-
'push-changes',
77-
'create-new-tag',
78-
'github-release',
79-
function (error) {
80-
if (error) {
81-
console.log(error.message);
82-
} else {
83-
console.log('RELEASE FINISHED SUCCESSFULLY');
84-
}
85-
callback(error);
86-
});
87-
});
70+
gulp.task('release', gulp.series(
71+
'bump-version',
72+
'changelog',
73+
'commit-changes',
74+
'push-changes',
75+
'create-new-tag',
76+
'github-release'
77+
));
8878

8979
```

0 commit comments

Comments
 (0)