From 3de76507a237e96aa981cc20a7b447eaa9130926 Mon Sep 17 00:00:00 2001 From: Automaker Date: Wed, 29 Apr 2026 10:44:27 -0700 Subject: [PATCH] fix(ci): release.yml now fires on auto-release/v* PRs auto-release.yml opens version-bump PRs from `auto-release/v*` branches into main, but release.yml's job gate only matched `head.ref == 'dev'`. Result: every auto-release PR was merging cleanly but skipping publish (v0.26.25 had to be dispatched manually). This adds the auto-release/* prefix to the gate and refreshes the stale top-of-file comment. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aabd86342..42cddb3a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,13 @@ name: 'Release' -# Fires when the dev→main promotion PR is merged. +# Fires when a release-bearing PR is merged into main. # Builds the bundle, publishes @protolabsai/proto to npm, tags, and creates a GitHub Release. # -# Flow: feature PRs → dev → prepare-release.yml bumps version on dev -# → dev→main promotion PR merges → this workflow tags and releases. +# Two flows trigger this: +# 1. Auto-release: auto-release.yml opens an `auto-release/v*` PR with the +# version bump, which merges to main and triggers this workflow. +# 2. Manual dev→main promotion: dev branch PR'd into main (legacy path, +# still supported). on: pull_request: @@ -24,7 +27,10 @@ jobs: github.event_name == 'workflow_dispatch' || ( github.event.pull_request.merged == true && - github.event.pull_request.head.ref == 'dev' + ( + github.event.pull_request.head.ref == 'dev' || + startsWith(github.event.pull_request.head.ref, 'auto-release/') + ) ) ) timeout-minutes: 30