diff --git a/.cursor/rules/utils/release-workflow-auto.mdc b/.cursor/rules/utils/release-workflow-auto.mdc index add8ed8..ec8b55c 100644 --- a/.cursor/rules/utils/release-workflow-auto.mdc +++ b/.cursor/rules/utils/release-workflow-auto.mdc @@ -147,10 +147,13 @@ actions: ``` 6. **Generate Structured Release Notes**: + ```bash + $RELEASE_DATE=$(date +%Y-%m-%d) + ``` ```markdown # What's Changed in [PACKAGE_NAME] v[NEW_VERSION] - **Release Date**: [DATE] + **Release Date**: [RELEASE_DATE] **Previous Version**: [PREVIOUS_VERSION] **Version Bump**: [MAJOR|MINOR|PATCH] - [REASON] **Branch**: [CURRENT_BRANCH] @@ -345,7 +348,7 @@ actions: echo "⏭️ Skipping version update" fi ``` - 9. **Offer Git Tag Creation** 🏷️ + 9. **Offer Git Tag Creation** 🏷️ ```bash echo "🏷️ Would you like me to create a git tag for version $NEW_VERSION?" diff --git a/README.md b/README.md index 091c66f..009b301 100644 --- a/README.md +++ b/README.md @@ -131,10 +131,9 @@ In fact, any of the agents can be called upon to help with the workflow at any t In the enablement of complete laziness, I tried getting Cursor to release from chat. -Generate professional release notes and changelogs automatically from your git history! -These rules analyze your commits and create structured documentation following best practices. +### :construction: Automate Release Workflow :construction: -### 🚀 Automate Release Workflow +Use with caution. This isn't perfect. Create a release with a version bump, generate release notes and changelog, and update the version in package.json. @@ -150,18 +149,13 @@ Create/Prepare a release [Create|Generate] release notes # Specify version bump upfront -Create a release with a major version bump -Create a release with a minor version bump -Create a release with a patch version bump - -# Interactive version selection (if no version specified) -# The rule will prompt you to choose: -# 1) Major version (breaking changes) -# 2) Minor version (new features) -# 3) Patch version (bug fixes) -# 4) Custom version +Create a major release +Create a minor release +Create a patch release ``` +If you don't specify a version bump, the rule will ask you to choose a version bump. +
Output Example @@ -186,6 +180,9 @@ npm version minor --no-git-tag git tag v0.2.0 git push origin v0.2.0 ``` + +See [RELEASE_NOTES_v0.1.3_to_v0.1.4.md](./RELEASE_NOTES_v0.1.3_to_v0.1.4.md) +
### 📚 Changelog Generator @@ -205,8 +202,6 @@ Generates a comprehensive `changelog.md` file at the project root in the style o # - Follow Keep a Changelog format standards ``` -#### Output Example: -
Output Example