Skip to content

PieLabs/release-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

release-helper

A fairly opinionated release helper for gulp.

Usage

//gulpfile.js
const gulp = require('gulp'),
      releaseHelper = require('release-helper');

releaseHelper.init(gulp);
gulp release
gulp release --bump-type major|minor|patch # default: minor
gulp release --github-token XXXXXX #or export GITHUB_TOKEN 

The release steps

  • ensure-clean - make sure the working tree is clean
  • checkout-develop
  • pull-develop
  • checkout-master
  • pull-master
  • merge-develop - merge develop -> master using -X theirs
  • strip-prerelease-version - change version from x.x.x-prerelease -> x.x.x
  • commit-release-changes
  • create-new-tag
  • push-master
  • github-release - push release to github using conventional-github-releaser - see below...
  • checkout-develop
  • bump-develop - bump the version and re-append -prerelease
  • commit-bump-changes
  • push-develop

github release

We release using the github releaser which will generate release notes from the commit log from messages that use the angular commit conventions outlined here. Note that the releaser doesn't pick up merge commits (need to fix that).