Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('tag', false, ['commit'], function(cb) {
var pkg = helper.readJsonFile('./package.json');
var v = 'v' + pkg.version;
var message = pkg.version;
git.tag(v, message, function(err) {
if (err) {
throw new Error(err);
}
cb();
});
});
gulp.task('tag', false, ['commit'], function(cb) {
var pkg = helper.readJsonFile('./package.json');
var v = 'v' + pkg.version;
var message = pkg.version;
git.tag(v, message, function(err) {
if (err) {
throw new Error(err);
}
cb();
});
});
gulp.task('tag', false, ['commit'], function(cb) {
var pkg = helper.readJsonFile('./package.json');
var v = 'v' + pkg.version;
var message = pkg.version;
git.tag(v, message, function(err) {
if (err) {
throw new Error(err);
}
cb();
});
});
gulp.task('tag', false, ['commit'], function(cb) {
var pkg = helper.readJsonFile('./package.json');
var v = 'v' + pkg.version;
var message = pkg.version;
git.tag(v, message, function(err) {
if (err) {
throw new Error(err);
}
cb();
});
});
function tagBump(cb) {
var version = packageJson().version;
git.tag(version, 'Tag version ' + version, function(error) {
if (error) {
return cb(error);
}
git.push('origin', 'master', {
args: '--tags'
}, cb);
});
}