Commit 1eeb25b
committed
fix(release): tag and pack the resolved release commit, never the dispatch head
Advances #8525. The reconcile self-heal dispatches publish-*.yml bare
(against main head), and the bare-dispatch path tagged-and-packed HEAD --
during today's runner backlog that placed ui-kit-v1.1.2 two commits late,
sweeping the would-be 1.1.3 fix into the 1.1.2 tag and published artifact
and zombifying the open v1.1.3 release PR (release-please saw 'No commits
for path' behind the misplaced tag and could neither regenerate nor prune
it; closed by hand as #8506).
All four publish workflows now resolve the RELEASE COMMIT -- the newest
main commit that introduced the current version string into the package's
own package.json (the release PR's merge commit) -- then:
- verify it is reachable from main,
- verify any pre-existing tag points AT it (not at HEAD),
- detach onto it so typecheck/pack build the exact tree the version
number describes,
- create the annotated tag at it explicitly.
Unresolvable ⇒ hard abort, never a head fallback. The release-please
dispatch path (dispatched against the tag itself) is byte-identical in
effect: there HEAD already IS the release commit. Regression pins in
test/unit/publish-release-tag-pins.test.ts cover the resolver, the
fail-loud arm, the detach, and the death of every head-tagging form
across all four workflows.1 parent a20ddd8 commit 1eeb25b
5 files changed
Lines changed: 186 additions & 44 deletions
File tree
- .github/workflows
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
74 | 92 | | |
75 | | - | |
76 | 93 | | |
77 | | - | |
78 | | - | |
| 94 | + | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | | - | |
| 98 | + | |
82 | 99 | | |
83 | | - | |
| 100 | + | |
84 | 101 | | |
85 | | - | |
86 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| |||
168 | 191 | | |
169 | 192 | | |
170 | 193 | | |
| 194 | + | |
171 | 195 | | |
172 | 196 | | |
173 | | - | |
174 | 197 | | |
175 | | - | |
| 198 | + | |
176 | 199 | | |
177 | | - | |
| 200 | + | |
178 | 201 | | |
179 | 202 | | |
180 | | - | |
| 203 | + | |
181 | 204 | | |
182 | 205 | | |
183 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
74 | 92 | | |
75 | | - | |
76 | 93 | | |
77 | | - | |
78 | | - | |
| 94 | + | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | | - | |
| 98 | + | |
82 | 99 | | |
83 | | - | |
| 100 | + | |
84 | 101 | | |
85 | | - | |
86 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| |||
185 | 208 | | |
186 | 209 | | |
187 | 210 | | |
| 211 | + | |
188 | 212 | | |
189 | 213 | | |
190 | | - | |
191 | 214 | | |
192 | | - | |
| 215 | + | |
193 | 216 | | |
194 | | - | |
| 217 | + | |
195 | 218 | | |
196 | 219 | | |
197 | | - | |
| 220 | + | |
198 | 221 | | |
199 | 222 | | |
200 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
75 | 93 | | |
76 | | - | |
77 | 94 | | |
78 | | - | |
79 | | - | |
| 95 | + | |
| 96 | + | |
80 | 97 | | |
81 | 98 | | |
82 | | - | |
| 99 | + | |
83 | 100 | | |
84 | | - | |
| 101 | + | |
85 | 102 | | |
86 | | - | |
87 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
88 | 111 | | |
89 | 112 | | |
90 | 113 | | |
| |||
177 | 200 | | |
178 | 201 | | |
179 | 202 | | |
| 203 | + | |
180 | 204 | | |
181 | 205 | | |
182 | | - | |
183 | 206 | | |
184 | | - | |
| 207 | + | |
185 | 208 | | |
186 | | - | |
| 209 | + | |
187 | 210 | | |
188 | 211 | | |
189 | | - | |
| 212 | + | |
190 | 213 | | |
191 | 214 | | |
192 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
74 | 92 | | |
75 | | - | |
76 | 93 | | |
77 | | - | |
78 | | - | |
| 94 | + | |
| 95 | + | |
79 | 96 | | |
80 | 97 | | |
81 | | - | |
| 98 | + | |
82 | 99 | | |
83 | | - | |
| 100 | + | |
84 | 101 | | |
85 | | - | |
86 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| |||
167 | 190 | | |
168 | 191 | | |
169 | 192 | | |
| 193 | + | |
170 | 194 | | |
171 | 195 | | |
172 | | - | |
173 | 196 | | |
174 | | - | |
| 197 | + | |
175 | 198 | | |
176 | | - | |
| 199 | + | |
177 | 200 | | |
178 | 201 | | |
179 | | - | |
| 202 | + | |
180 | 203 | | |
181 | 204 | | |
182 | 205 | | |
| |||
0 commit comments