gulp-github-release-maker

Simple gulp plugin to create a GitHub release

Usage no npm install needed!

<script type="module">
  import gulpGithubReleaseMaker from 'https://cdn.skypack.dev/gulp-github-release-maker';
</script>

README

Gulp GitHub release maker

Build Status

Install

npm i --save-dev gulp-github-release-maker

Usage

Add the following to your gulpfile.js:

'use strict';

var gulp = require('gulp');
var githubRelease = require('gulp-github-release-maker');

gulp.task('release:changelog', function (done) {
  githubRelease.showChangelog(done);
});

gulp.task('release:do:patch', function (done) {
  githubRelease.createRelease({ type: 'patch' }, done);
});

gulp.task('release:do:minor', function (done) {
  githubRelease.createRelease({ type: 'minor' }, done);
});

gulp.task('release:do:major', function (done) {
  githubRelease.createRelease({ type: 'major' }, done);
});

The release:changelog command will show the pull requests merged since your last tag.

The release:do:* commands will:

  • show the changelog since last tag
  • ask a user confirmation before doing anything
  • bump your package.json according to the type option
  • commit the change
  • create a tag
  • push the master
  • push tags