rsd-helpers-release
v1.0.5
Published
Gulp tasks to bump version, create commit, push tag, trigger build, replace versionnumber in dist, create zip folder
Downloads
2
Readme
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 upBUILDTASK
the gulp task name of the build task you want to execute for a release buildREMOTE
the remote you want to push to, this should be origin as the jenkins will use origin as remote name for the repo