Skip to content

fix(vscode-release): create Open VSX namespace before first publish - #13

Merged
morrieinmaas merged 1 commit into
mainfrom
fix/ovsx-create-namespace
May 19, 2026
Merged

fix(vscode-release): create Open VSX namespace before first publish#13
morrieinmaas merged 1 commit into
mainfrom
fix/ovsx-create-namespace

Conversation

@morrieinmaas

Copy link
Copy Markdown
Owner

The first `vscode-v0.4.0` tag push failed at the Open VSX step:

```
❌ Unknown publisher: morriearty-zg
Use the 'create-namespace' command to create a namespace corresponding to your publisher name.
```

`ovsx` requires a publisher namespace to exist before any publish. Prepending an idempotent `create-namespace` call (`|| true` swallows the 409-conflict on subsequent runs) fixes the first-time case and is a no-op forever after.

After this merges, re-trigger via either:
```
gh workflow run "VS Code extension release"
```
or by pushing a new `vscode-v*` tag.

The first run of `vscode-v0.4.0` failed at the Open VSX publish step:

  ❌ Unknown publisher: morriearty-zg
  Use the 'create-namespace' command to create a namespace
  corresponding to your publisher name.

`ovsx` requires a publisher namespace to exist before any publish. We
never ran `create-namespace`, so the very first publish from CI dies.

Fix: prepend `ovsx create-namespace morriearty-zg -p $OVSX_PAT || true`
to the publish step. It's idempotent — second-run errors (409 conflict
when the namespace already exists) are swallowed by `|| true`. Any
genuine auth/network failure still surfaces via the publish step that
follows; we're only hiding the harmless "already exists" case.

After this lands, re-trigger via `gh workflow run "VS Code extension
release"` or push a fresh `vscode-v*` tag.
@morrieinmaas
morrieinmaas merged commit c6d36f6 into main May 19, 2026
2 checks passed
@morrieinmaas
morrieinmaas deleted the fix/ovsx-create-namespace branch May 19, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant