Commit 2c56b67
ci(publish): don't strand the GitHub release on a transient registry failure
Both registry publishes now use `continue-on-error: true` and the
"Create GitHub release" step runs as long as at least one registry
accepted the publish. A new "Registry publish status" step at the
end re-asserts the job-level failure when either publish errored,
so partial-success runs are still visible in the run UI / branch
protection / notifications.
Motivation: v1.0.2's publish workflow failed at "Publish to Open VSX"
with an HTTP 405 (transient registry-side; v1.0.1 shipped unchanged
14 h earlier). Because the publish step is a `run:` script with
`bash -e`, the job aborted there and "Create GitHub release" never
ran — so v1.0.2 made it to the VS Code Marketplace but was missing
from both Open VSX and GitHub Releases. The recovery cost a fresh
1.0.x tag (v1.0.3).
Behaviour matrix after this change:
vsce | ovsx | GH release | job
-----|------|------------|-----
✓ | ✓ | created | green (unchanged)
✓ | ✗ | created | red (was: not created, red)
✗ | ✓ | created | red (was: not created, red)
✗ | ✗ | skipped | red (unchanged)
The status step gates itself on `steps.<publish>.conclusion == 'success'`
so it stays quiet when the job fails upstream of publish (lint, tests,
audit, etc.) — `conclusion` is the post-`continue-on-error` roll-up,
which is 'success' for any publish step that actually executed and
'skipped' for steps that never reached execution.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 21a5e26 commit 2c56b67
1 file changed
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
189 | 198 | | |
| 199 | + | |
| 200 | + | |
190 | 201 | | |
191 | 202 | | |
192 | 203 | | |
| |||
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
| 209 | + | |
| 210 | + | |
198 | 211 | | |
199 | 212 | | |
200 | 213 | | |
| |||
205 | 218 | | |
206 | 219 | | |
207 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
208 | 230 | | |
209 | 231 | | |
210 | 232 | | |
211 | 233 | | |
212 | 234 | | |
213 | 235 | | |
214 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
0 commit comments