1.0.5 • Published 7 years ago

rsd-helpers-release v1.0.5

Weekly downloads
6
License
ISC
Repository
-
Last release
7 years ago

Rockstar Release Helper

Description:

This little task does these things for you:

  • bump the version (patch(default) | minor | major) in package.json
  • commit/push the version bump
  • create/push a new tag with the release number
  • trigger the build job of the project
  • replace all occurences of ###VERSIONNUMBER### in your dist folder
  • create a zip named with the version number in your distfolder e.g. dist/release/release_v1.2.3.zip

##Usage:

Install the module with npm install rsd-helpers-release

A new Release can be triggered with node node_modules/rsd-helpers-release you can add options like so to trigger minor and major releases (defaults to --patch): node node_modules/rsd-helpers-release --minor node node_modules/rsd-helpers-release --major

##Configuration: you need to specify the following information via env variables:

DISTFOLDER (defaults to './dist')
BUILDTASK (defaults to 'build')
REMOTE (defaults to 'origin')
  • DISTFOLDER this is the folder where the result of the build task of your project will end up
  • BUILDTASK the gulp task name of the build task you want to execute for a release build
  • REMOTE the remote you want to push to, this should be origin as the jenkins will use origin as remote name for the repo