Commit 6b899df
refactor(ui-scripts): fold tagged-release into pr-snapshot workflow
Drops the standalone `tagged-release` workflow_dispatch choice and
reusable workflow. Instead, the existing `pr-snapshot` path accepts two
optional inputs — `custom_version` and `dist_tag` — that, when set,
override the auto-computed snapshot version and dist-tag.
Behavior is identical from the operator's perspective: pick
`pr-snapshot` in the GitHub UI, fill in `custom_version` (e.g.
`11.7.3-SECURITY.0`) and `dist_tag` (e.g. `security`), and the job
publishes that exact prerelease to npmjs under that tag.
The `publishCustomVersion` function is removed; the snapshot path now
takes an optional `customVersion` that, if set, replaces
`calculateNextSnapshotVersion()` and the operator-supplied `distTag`
replaces the default `pr-snapshot` / `snapshot` tag. Validation moves
to a single `validateCustomVersionInputs()` helper that runs before
anything else.
Net diff: -1 workflow file, ~50 fewer lines, same guard rails.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0af5a27 commit 6b899df
4 files changed
Lines changed: 81 additions & 129 deletions
File tree
- .github/workflows
- packages/ui-scripts/lib/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
4 | 15 | | |
5 | 16 | | |
6 | 17 | | |
| |||
11 | 22 | | |
12 | 23 | | |
13 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
14 | 39 | | |
15 | 40 | | |
16 | 41 | | |
| |||
25 | 50 | | |
26 | 51 | | |
27 | 52 | | |
28 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
29 | 62 | | |
30 | 63 | | |
31 | 64 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 57 | | |
67 | 58 | | |
68 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 103 | + | |
109 | 104 | | |
110 | 105 | | |
111 | 106 | | |
| |||
117 | 112 | | |
118 | 113 | | |
119 | 114 | | |
120 | | - | |
| 115 | + | |
121 | 116 | | |
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
125 | 120 | | |
126 | 121 | | |
127 | | - | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
133 | 129 | | |
134 | 130 | | |
135 | 131 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
151 | 135 | | |
152 | | - | |
153 | | - | |
| 136 | + | |
| 137 | + | |
154 | 138 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
167 | 153 | | |
| 154 | + | |
168 | 155 | | |
169 | | - | |
170 | | - | |
171 | | - | |
| 156 | + | |
172 | 157 | | |
| 158 | + | |
173 | 159 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
182 | 167 | | |
183 | 168 | | |
184 | 169 | | |
185 | 170 | | |
186 | | - | |
187 | | - | |
188 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
189 | 174 | | |
190 | 175 | | |
191 | | - | |
192 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
193 | 179 | | |
194 | 180 | | |
195 | 181 | | |
| |||
0 commit comments