1.0.0-beta.3 • Published 6 years ago

git-deploy-version v1.0.0-beta.3

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

git-deploy-version

NPM version Dependency Status Donate

Deploy flow using GIT and SemVer

Dependencies

  • GIT

How to Use

  • Setup a configuration file like config.json.sample
  • Run CLI
./git-deploy-version --root /project/dir --config /project/dir/git-deploy-version-config.json

Logic Flow

  • Get GIT Branch
  • Branch must be develop, stage or master
  • GIT fetch remote and tags
  • GIT pull remote branch
  • List all the Tags
  • Get grater Tag (based on semver)
  • Update version old
  • Start inquirer
  • Update versions
  • GIT add all files
  • GIT commit
  • GIT add tag
  • GIT push tags
  • GIT push remote branch
  • GIT checkout develop
  • GIT pull remote develop

TODO

[] Customizable GIT remote alias (currently is origin) [] Customizable GIT allowed branches (currently just develop, stage and master) [] Customizable version prefix (currently is v) [] Customizable branch return (currently develop)

Please Contribute!

I'm happy to receive contributions of any kind!

Did you like my work?

Help me out with a little donation, press on the button below. Donate