Skip to content

fix(kiro-extension): guard the first Open VSX publish - #35

Merged
AlleyBo55 merged 1 commit into
masterfrom
kiro/extension-publishing
Jul 28, 2026
Merged

AlleyBo55 merged 1 commit into
masterfrom
kiro/extension-publishing

Conversation

@AlleyBo55

Copy link
Copy Markdown
Owner

Two things that would have failed or silently misfired on the first release.

Publishing into a namespace that does not exist fails outright, and the namespace had never been claimed. ovsx create-namespace now runs first. It is idempotent, so the first release needs no manual web step and later ones are unaffected. An "already exists" response is treated as success; anything else stops the publish with the registry's own message rather than a generic failure.

The tag names the release but the version comes from package.json, and nothing checked they agreed. Tagging kiro-extension-v0.2.0 with a manifest still on 0.1.0 would have published 0.1.0 under a misleading tag, and Open VSX does not allow replacing a published version. The publish path now refuses to run when GITHUB_REF_NAME disagrees with the manifest, before anything is uploaded.

Verified locally: packaging without --publish is unchanged; a mismatched tag is rejected before any network call; a matching tag proceeds to the namespace step and stops there on a bad token with "Invalid access token".

Two things that would have failed or silently misfired on the first release.

Publishing into a namespace that does not exist fails outright, and the namespace
had never been claimed. `ovsx create-namespace` now runs first. It is idempotent,
so the first release needs no manual web step and later ones are unaffected. An
"already exists" response is treated as success; anything else stops the publish
with the registry's own message rather than a generic failure.

The tag names the release but the version comes from package.json, and nothing
checked they agreed. Tagging kiro-extension-v0.2.0 with a manifest still on 0.1.0
would have published 0.1.0 under a misleading tag, and Open VSX does not allow
replacing a published version. The publish path now refuses to run when
GITHUB_REF_NAME disagrees with the manifest, before anything is uploaded.

Verified locally: packaging without --publish is unchanged; a mismatched tag is
rejected before any network call; a matching tag proceeds to the namespace step
and stops there on a bad token with "Invalid access token".
@AlleyBo55
AlleyBo55 merged commit 088f0ea into master Jul 28, 2026
5 checks passed
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