Skip to content

ci: run on merge_group and keep publishing off the queue ref - #3

Merged
nabheet merged 1 commit into
mainfrom
ci/merge-queue
Oct 29, 2026
Merged

nabheet merged 1 commit into
mainfrom
ci/merge-queue

Conversation

@nabheet

@nabheet nabheet commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Change

Enables a GitHub merge queue for main without touching release behaviour:

  • add the merge_group trigger, so queued merges get a CI run that can satisfy the required checks;
  • restrict publish to push and workflow_dispatch. A merge_group run executes on a synthetic gh-readonly-queue/... ref, and the old event_name != 'pull_request' guard would have treated that as a releasable push.

PR pre-release jobs are unaffected (they already require pull_request).

Why

Branch protection is strict (branch must be up to date), so landing several PRs means update-branch + a full CI cycle for each one, serially. The merge queue does that automatically.

Validation

YAML parses and on: lists all four events. CI on this PR is the real check; after merge the first queued PR exercises merge_group.

Enables a GitHub merge queue without changing release behaviour: CI runs
for merge_group so queued merges can satisfy required checks, while the
publish job only runs for push and workflow_dispatch. A merge-group run
must never publish.
@github-actions

Copy link
Copy Markdown

Beta prerelease published: 0.1.0-beta.7 — installable with npm i opencode-rtk-plugin@beta.

@nabheet
nabheet merged commit 9982651 into main Oct 29, 2026
6 checks passed
@nabheet
nabheet deleted the ci/merge-queue branch October 29, 2026 23:43
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