Skip to content

fix(ci): skip vscode publish steps when registry token is missing#33

Closed
jimisola wants to merge 1 commit into
mainfrom
fix/vscode-publish-skip-missing-tokens
Closed

fix(ci): skip vscode publish steps when registry token is missing#33
jimisola wants to merge 1 commit into
mainfrom
fix/vscode-publish-skip-missing-tokens

Conversation

@jimisola
Copy link
Copy Markdown
Member

Summary

  • HaaLeo/publish-vscode-extension@v2 treats an empty pat as "not supplied" and errors hard, even though both secrets (OPEN_VSX_TOKEN, VSCE_PAT) are declared required: false
  • Adds a Check token availability step that writes boolean outputs by inspecting the secrets via env vars
  • Gates each publish step on both the registry input and the token being present, so the job succeeds gracefully when a secret is not configured

Test plan

  • Verify the failing run on reqstool-vscode would now skip Publish to Open VSX Registry instead of erroring
  • Confirm a run with both tokens set still publishes to both registries

HaaLeo/publish-vscode-extension@v2 treats an empty `pat` as "not
supplied" and errors out. Add a token-check step and gate each publish
step on its output so the job succeeds gracefully when a registry
secret (OPEN_VSX_TOKEN or VSCE_PAT) is not configured.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola
Copy link
Copy Markdown
Member Author

Closing — the build should fail when a registry token is missing. The fix is to add the missing secret to the repo.

@jimisola jimisola closed this May 13, 2026
@jimisola jimisola deleted the fix/vscode-publish-skip-missing-tokens branch May 13, 2026 20:08
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