Skip to content

fix(ci): route manifest-file per target branch in release-please workflow - #594

Merged
prasad-albert merged 1 commit into
mainfrom
fix-release-please-workflow-manifest
Jul 7, 2026
Merged

fix(ci): route manifest-file per target branch in release-please workflow#594
prasad-albert merged 1 commit into
mainfrom
fix-release-please-workflow-manifest

Conversation

@prasad-albert

Copy link
Copy Markdown
Collaborator

Summary

  • main's release-please workflow always used the default .release-please-manifest.json, ignoring target_branch — next's workflow correctly switches manifest-file per target.
  • Aligns main's workflow with next's, so a workflow_dispatch with target_branch=next from main's ref uses .release-please-manifest-next.json instead of silently applying prerelease config against the wrong manifest.

Test plan

  • Confirm normal push-to-main release-please run still works (config-file/manifest-file resolve to release-please-config.json / .release-please-manifest.json)
  • Confirm workflow_dispatch with target_branch=next resolves to release-please-config-next.json / .release-please-manifest-next.json

…flow

main's workflow always used the default .release-please-manifest.json
regardless of target_branch, unlike next's workflow. Dispatching with
target_branch=next from main's ref would apply prerelease config
against the wrong manifest file and corrupt version state.
@claude

claude Bot commented Jul 7, 2026

Copy link
Copy Markdown

Looks good - no bugs or correctness issues found.

@prasad-albert
prasad-albert merged commit cc1778b into main Jul 7, 2026
4 checks passed
@prasad-albert
prasad-albert deleted the fix-release-please-workflow-manifest branch July 7, 2026 16:08
prasad-albert added a commit that referenced this pull request Jul 8, 2026
main's tags have always been component-less (v1.32.1, not albert-v1.32.1).
package-name: albert implicitly set the expected component in manifest
mode, which release-please now runs (#594) after config-file/manifest-file
became the sole source of release-type/versioning-strategy. That mismatch
made release-please reject every historical tag as an unknown component
and fall back to a full-history diff (PR #596).
prasad-albert added a commit that referenced this pull request Jul 8, 2026
main's tags have always been component-less (v1.32.1, not albert-v1.32.1).
package-name: albert implicitly set the expected component in manifest
mode, which release-please now runs (#594) after config-file/manifest-file
became the sole source of release-type/versioning-strategy. That mismatch
made release-please reject every historical tag as an unknown component
and fall back to a full-history diff (PR #596).
prasad-albert added a commit that referenced this pull request Jul 8, 2026
)

Reverts #594. Explicitly passing manifest-file (and dropping the
release-type/versioning-strategy action inputs) pushed main's
release-please run into full manifest-mode component search, which
doesn't recognize this repo's component-less tags and produces a
full-history diff (see PR #596, #603). Reverting to restore main's
release-please run to its previous working behavior while a proper
fix for next's manifest routing is worked out separately.
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.

2 participants