Skip to content

Instantly share code, notes, and snippets.

@digitalbocca
Created November 26, 2018 01:35
Show Gist options
  • Save digitalbocca/9a495dbfc43967ea44352fda23f35a45 to your computer and use it in GitHub Desktop.
Save digitalbocca/9a495dbfc43967ea44352fda23f35a45 to your computer and use it in GitHub Desktop.
Configuração para o controle de versão automatizado - npm git
{
"version": "0.1.0",
"config": {
"commitMessage": "Automatizado o controle de versão"
},
"scripts": {
"git": "npm run gst && npm run gad && npm run gco && npm run gta && npm run gpo",
"gst": "git status",
"gad": "git add .",
"gco": "cross-var git commit -m \"$npm_package_config_commitMessage\"",
"gta": "cross-var git tag v$npm_package_version",
"gpo": "git push origin master --tags"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment