Skip to content

Commit 4c08a4f

Browse files
feat: add automated publish commands for complete release workflow
- Add publish-patch, publish-minor, and publish-major commands - Each command runs: bump version, push, and publish to crates.io - Update RELEASES.md with Quick Release section at the top - Rename manual steps section to "Manual Release (Step by Step)"
1 parent 8e1c8d7 commit 4c08a4f

2 files changed

Lines changed: 81 additions & 1 deletion

File tree

RELEASES.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,27 @@
22

33
This project uses [git-cliff](https://git-cliff.org/) for automated changelog generation. The changelog is maintained in [CHANGELOG.md](CHANGELOG.md).
44

5-
## Creating a New Release
5+
## Quick Release (Automated)
6+
7+
For a complete release (bump version, push, publish to crates.io):
8+
9+
```bash
10+
# For a patch release
11+
just publish-patch
12+
13+
# For a minor release
14+
just publish-minor
15+
16+
# For a major release
17+
just publish-major
18+
```
19+
20+
After the command completes, create a GitHub release:
21+
```bash
22+
just publish-release
23+
```
24+
25+
## Manual Release (Step by Step)
626

727
1. Bump the version:
828

justfile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,63 @@ bump-patch-version:
243243
echo ""
244244
echo "Version bumped and tagged! To push, run:"
245245
echo " just push-version"
246+
247+
# Bumps patch version, pushes, and publishes to crates.io (Windows)
248+
[windows]
249+
publish-patch:
250+
just bump-patch-version
251+
just push-version
252+
just publish-crate
253+
Write-Host ""
254+
Write-Host "To publish a GitHub release for this version, run:" -ForegroundColor Green
255+
Write-Host " just publish-release" -ForegroundColor Green
256+
257+
# Bumps patch version, pushes, and publishes to crates.io (Unix)
258+
[unix]
259+
publish-patch:
260+
just bump-patch-version
261+
just push-version
262+
just publish-crate
263+
@echo ""
264+
@echo "To publish a GitHub release for this version, run:"
265+
@echo " just publish-release"
266+
267+
# Bumps minor version, pushes, and publishes to crates.io (Windows)
268+
[windows]
269+
publish-minor:
270+
just bump-minor-version
271+
just push-version
272+
just publish-crate
273+
Write-Host ""
274+
Write-Host "To publish a GitHub release for this version, run:" -ForegroundColor Green
275+
Write-Host " just publish-release" -ForegroundColor Green
276+
277+
# Bumps minor version, pushes, and publishes to crates.io (Unix)
278+
[unix]
279+
publish-minor:
280+
just bump-minor-version
281+
just push-version
282+
just publish-crate
283+
@echo ""
284+
@echo "To publish a GitHub release for this version, run:"
285+
@echo " just publish-release"
286+
287+
# Bumps major version, pushes, and publishes to crates.io (Windows)
288+
[windows]
289+
publish-major:
290+
just bump-major-version
291+
just push-version
292+
just publish-crate
293+
Write-Host ""
294+
Write-Host "To publish a GitHub release for this version, run:" -ForegroundColor Green
295+
Write-Host " just publish-release" -ForegroundColor Green
296+
297+
# Bumps major version, pushes, and publishes to crates.io (Unix)
298+
[unix]
299+
publish-major:
300+
just bump-major-version
301+
just push-version
302+
just publish-crate
303+
@echo ""
304+
@echo "To publish a GitHub release for this version, run:"
305+
@echo " just publish-release"

0 commit comments

Comments
 (0)