You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vscode): retry publish on marketplace version conflict (tldraw#8297)
When two pushes to `main` happen in quick succession, the
`publish-editor-extensions` workflow fails with "already exists". The
concurrency group serializes job execution, but the marketplace API has
propagation delay — both runs fetch the same stale version and compute
the same next version.
This PR wraps the version-bump → package → publish cycle in a retry
loop. If `vsce publish` fails with "already exists", the script waits
60s, re-fetches the marketplace version, re-computes the next version,
re-packages, and retries (up to 5 attempts).
Also moves the `vsce show` marketplace fetch (previously a separate
workflow step) into the script so it can be re-run on retry.
### Change type
- [x] `bugfix`
### Test plan
1. Review the retry logic in `publish-editor-extensions.ts`
2. Verify the "already exists" error string matches what vsce actually
outputs (confirmed from CI logs: `::error::tldraw-org.tldraw-vscode
v2.216.1 already exists.`)
- [ ] Unit tests
- [ ] End to end tests
### Code changes
| Section | LOC change |
| -------------- | ---------- |
| Config/tooling | +52 / -27 |
0 commit comments