Skip to content

CI(Release): Check editor versions only when the push releases - #502

Merged
1aron merged 1 commit into
mainfrom
ci/release-plan-gate
Nov 7, 2026
Merged

1aron merged 1 commit into
mainfrom
ci/release-plan-gate

Conversation

@1aron

@1aron 1aron commented Nov 7, 2026

Copy link
Copy Markdown
Member

Summary

The first Release run after #501 (run 42331744292) failed in Require unused editor versions before publishing npm: the gate runs whenever validation reports vscode_release_affected, so a push without release commits failed on editor version 2.0.37, which v2.0.3 already published, before scripts/release.mjs could report that nothing releases.

  • A new Plan the release step runs node scripts/release.mjs --dry-run --github-output, which writes release, version and tag to $GITHUB_OUTPUT without verifying, packing or writing anything.
  • The editor gate now also requires steps.plan.outputs.version != ''. publish-editors already requires released == 'true'.

Validation

  • scripts/release.test.mjs (new dry-run output test), scripts/editor-release-gate.test.mjs (plan → gate → release order and condition), scripts/validation-workflow.test.mjs, bun run check:release pass locally.
  • node scripts/release.mjs --dry-run --github-output --branch main on this branch writes an empty version: v2.0.3..HEAD has no release commits.

🤖 Generated with Claude Code

The editor version gate ran whenever a push affected the VS Code
extension, so a push without release commits failed on an editor version
that an earlier release had already published, before
scripts/release.mjs could report that nothing releases. A plan step,
`release.mjs --dry-run --github-output`, now writes the planned version,
and the gate runs only when there is one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@1aron
1aron merged commit 8a8902d into main Nov 7, 2026
19 checks passed
@1aron
1aron deleted the ci/release-plan-gate branch November 7, 2026 05:14
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