|
| 1 | +--- |
| 2 | +description: "Bump the project version (patch, minor, or major) and stage the changes" |
| 3 | +allowed-tools: |
| 4 | + - Read |
| 5 | + - Edit |
| 6 | + - Bash |
| 7 | +--- |
| 8 | + |
| 9 | +You are helping to bump the version in this Elixir project. |
| 10 | + |
| 11 | +Arguments provided: $ARGUMENTS |
| 12 | + |
| 13 | +## Version Update Locations |
| 14 | + |
| 15 | +Based on codebase analysis, these files need manual updates: |
| 16 | + |
| 17 | +### Required Updates |
| 18 | + |
| 19 | +1. **`mix.exs:4`** - `@version "0.3.0"` (primary version) |
| 20 | +2. **`README.md:28`** - Installation example `{:dprint_markdown_formatter, "~> 0.1.0"}` |
| 21 | +3. **`llms.txt:24`** - Installation example `{:dprint_markdown_formatter, "~> 0.1.0"}` |
| 22 | + |
| 23 | +### Automatic Updates |
| 24 | + |
| 25 | +- `mix.exs:10,82` - Use `@version` variable, update automatically |
| 26 | +- GitHub workflows - Extract version from mix.exs automatically |
| 27 | + |
| 28 | +### Optional/Independent |
| 29 | + |
| 30 | +- `Cargo.toml:3` - Rust crate version (can be kept independent) |
| 31 | + |
| 32 | +## Instructions |
| 33 | + |
| 34 | +1. Read the current version from mix.exs (look for @version "x.x.x") |
| 35 | +2. Parse the version type from arguments (patch, minor, major) - default to patch if not specified |
| 36 | +3. Calculate the new version based on semantic versioning rules: |
| 37 | + - patch: increment the third number (x.x.X) |
| 38 | + - minor: increment the second number, reset patch to 0 (x.X.0) |
| 39 | + - major: increment the first number, reset minor and patch to 0 (X.0.0) |
| 40 | +4. Update ALL required locations: |
| 41 | + - Update the @version line in mix.exs with the new version |
| 42 | + - Update installation examples in README.md and llms.txt (change version range appropriately) |
| 43 | +5. Run `mix format` to ensure proper formatting |
| 44 | +6. Stage the changed files with git |
| 45 | +7. Create a commit with message "chore: bump version to X.X.X" |
| 46 | + |
| 47 | +Be concise and show the version change clearly. |
| 48 | + |
0 commit comments