diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index b2add18d..03a288b8 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -5,6 +5,8 @@ title: Changelog ## [Unreleased](https://github.com/lets-cli/lets/releases/tag/v0.0.X) +## [0.0.50](https://github.com/lets-cli/lets/releases/tag/v0.0.50) + * `[Dependency]` upgrade cobra to 1.6.0 * `[Dependency]` upgrade logrus to 1.9.0 * `[Fixed]` Removed builtin `--help` flag for subcommands. Now using `--help` will pass this flag to underlying `cmd` script. diff --git a/lets.yaml b/lets.yaml index 8ce369a2..2ff4ff19 100644 --- a/lets.yaml +++ b/lets.yaml @@ -13,10 +13,19 @@ commands: description: Create tag and push options: | Usage: lets release --message= + Options: - Set version + Set version (e.g. 1.0.0) --message=, -m Release message + + Example: + lets release 1.0.0 -m "Release 1.0.0" cmd: | + if [[ -z "$(grep "\[${LETSOPT_VERSION}\]" docs/docs/changelog.md)" ]]; then + echo "Version ${LETSOPT_VERSION} not found in changelog. Update docs/docs/changelog.md and try again." + exit 1 + fi + git tag -a v${LETSOPT_VERSION} -m "${LETSOPT_MESSAGE}" git push --tags