3.0.1 • Published 2 years ago
cz-deploy v3.0.1
cz-deploy
Bunch of opinionated tools for releasing packages workflow
Installation
yarn add -D cz-deployUsage
cz-deploy assumes that you have master and dev branch
yarn cz-update-version- updates version in package.json. If there are commits starting withbreakingit will release a new major version, if there are commits starting withfeatit will release a new minor version, otherwise a new patchyarn cz-commit [--chore=NAME] [--push] [--push-tags]- addsv${version}tag and commits current changes withchore(NAME): v${version}message. Callscz-syncifpushorpush-tagsargs are providedyarn cz-sync [--push] [--push-tags]- synchronizes and pushesdevandmasterbranchesyarn cz-add-tag- adds av${version}tag (ex.v1.0.5, version take from package.json file)yarn cz-lag-tag-commits- prints the commits since the last tag
Example workflow - simple project
1. Add the following script to your package.json
{
"scripts": {
"release": "git diff --name-status --exit-code HEAD && yarn cz-update-version && yarn cz-commit --push --push-tags"
}
}2. Be sure you're on dev branch, commit all your changes, run yarn release
Example workflow - advances usage with testing/building stages and publishing to npm
1. Add the following script to your package.json
{
"scripts": {
"release": "git diff --name-status --exit-code HEAD && yarn test && yarn cz-update-version && yarn build && git add . && yarn cz-commit --chore=build+release --push --push-tags && npm publish",
"test": "YOUR_TEST_SCRIPT",
"build": "YOUR_BUILD_SCRIPT"
}
}2. Be sure you're on dev branch, commit all your changes, run yarn release
3.0.1
2 years ago
3.0.0
2 years ago
2.0.0
2 years ago
1.0.0-rc.3
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.0-rc.2
5 years ago
1.0.0-rc.1
5 years ago