Skip to content

chore: support release branches in CI workflows#111

Merged
jrichter1 merged 1 commit into
redhat-developer:mainfrom
subhashkhileri:workflow/support-release-branches
Jun 10, 2026
Merged

chore: support release branches in CI workflows#111
jrichter1 merged 1 commit into
redhat-developer:mainfrom
subhashkhileri:workflow/support-release-branches

Conversation

@subhashkhileri

Copy link
Copy Markdown
Member

Summary

  • publish-npm.yml: Trigger on release-* branches. Release branches publish with the branch name as the npm dist-tag (e.g., release-1.10) so latest stays pinned to main.
  • pr-build-and-check.yml: Accept PRs targeting release-* branches. Replace hardcoded origin/main with dynamic origin/${{ github.base_ref }} (via env vars) so version-check and docs-check compare against the correct base branch.

This is needed to support the release-1.10 branch for RHDH 1.10 E2E test utils releases (1.10.x versioning), independent of main which uses 2.x versioning for RHDH 2.1+.

Test plan

  • Verify PR checks pass on this PR (targeting main)
  • Cherry-pick to release-1.10 and verify PR checks work against the release branch
  • After merge + cherry-pick, verify publish workflow publishes with correct npm tag from release branch

Assisted-by: Claude Code

@subhashkhileri subhashkhileri force-pushed the workflow/support-release-branches branch 2 times, most recently from 653246a to 9dd2530 Compare June 10, 2026 09:06
- publish-npm.yml: trigger on release-* branches, publish with branch
  name as npm dist-tag so `latest` stays on main
- pr-build-and-check.yml: accept PRs targeting release-* branches,
  use dynamic base ref instead of hardcoded origin/main

Assisted-by: Claude Code
Co-Authored-By: Claude Code
@jrichter1 jrichter1 merged commit 685727f into redhat-developer:main Jun 10, 2026
3 checks passed
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