yarn add https://github.com/Kirbo/project-helpers#master
Add new scripts to pacakge.json
file:
"scripts": {
"tag:list": "tag-list",
"tag:commit": "tag-commit",
"deploy:dev": "some_command/that_will_deploy_to dev && yarn tag:commit dev",
"deploy:prod": "some_command/that_will_deploy_to prod && yarn tag:commit prod"
}
From now on, deploy with command:
yarn deploy:dev
...and if you want to check what has been deployed before, use:
yarn tag:list
There are hard coded pre-defined stages:
dev
test
qa
prod
The tag:list
will group the tags into following sections:
DEV
TEST
QA
PROD
OTHER