Make a git commit with a simple command and control the repository version.
The version number will be taken and updated from:
version/version.json
package.json
Version syntax : 00.11.22 = [mayor version].[version].[revision]
Update revision
sh autocommit.sh
Update version
sh autocommit.sh v
Update mayor version
sh autocommit.sh mv
- Use node to open the version.json file and update the revision.
- See the status of the repository.
- Add all files to the repository.
- Make a commit by passing the version.revision number as a message.
- Push the files to the remote repository in the master branch.
- Node CLI
- JQ
Install JQ on Windows with Choco
choco install jq
Install JQ on Linux/Ubuntu
sudo apt-get install jq
Autor Ariel Ivan Diaz