Commit d22ad0c
committed
ci: guard releases against version/changelog drift
Adds a verify-release job to the release workflow that fails a numbered
release unless the git tag matches the [workspace.package] version in
Cargo.toml and CHANGELOG.md has a matching section. The build matrix now
depends on it, so a mismatched tag never builds or publishes.
Reworks 'mise run release' to verify the same invariants client-side
(clean, in-sync main; version and changelog match the tag; tag is new)
before tagging, instead of blindly tagging whatever is checked out.
Documents the prepare-release-PR -> tag flow in DEVELOPMENT.md.
This prevents the drift that left v2.2.1 shipping with Cargo.toml still
at 2.2.0-alpha.1 and no [2.2.1] changelog entry.1 parent d36bea7 commit d22ad0c
3 files changed
Lines changed: 107 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
19 | 48 | | |
20 | 49 | | |
| 50 | + | |
21 | 51 | | |
22 | 52 | | |
23 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
739 | 755 | | |
740 | 756 | | |
741 | | - | |
| 757 | + | |
742 | 758 | | |
743 | 759 | | |
744 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
745 | 763 | | |
746 | 764 | | |
747 | 765 | | |
748 | 766 | | |
749 | 767 | | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
750 | 772 | | |
751 | 773 | | |
752 | | - | |
| 774 | + | |
753 | 775 | | |
754 | 776 | | |
755 | | - | |
756 | | - | |
757 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
758 | 780 | | |
759 | 781 | | |
760 | | - | |
| 782 | + | |
761 | 783 | | |
762 | 784 | | |
763 | 785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
711 | 754 | | |
| 755 | + | |
712 | 756 | | |
713 | 757 | | |
714 | 758 | | |
| |||
0 commit comments