Skip to content

feat(ci): enhance SDK release workflow #35742

Open
KevinDavilaDotCMS wants to merge 1 commit into
mainfrom
35670-enhance-sdk-publication-workflow-error-notifications-manual-next-tag-generation
Open

feat(ci): enhance SDK release workflow #35742
KevinDavilaDotCMS wants to merge 1 commit into
mainfrom
35670-enhance-sdk-publication-workflow-error-notifications-manual-next-tag-generation

Conversation

@KevinDavilaDotCMS
Copy link
Copy Markdown
Member

@KevinDavilaDotCMS KevinDavilaDotCMS commented May 19, 2026

  • Failure notifications: Both the trunk (@next) and manual release (@latest) workflows now post a Slack message to #log-sdk-libs when the publish fails. Previously failures were silent —
    the channel only received success messages.
  • Idempotent branch handling: The manual release workflow created sdk/release-X.Y.Z and sdk/post-release-X.Y.Z branches using git checkout -b, which fails if a branch already exists from
    a previous failed run. Re-triggering the workflow would always fail at that step. Both branches are now handled idempotently: if the branch exists on the remote it is reset to
    origin/main and force-pushed; if the post-release PR already exists it is reused instead of re-created.
  • Post-release PR link in Slack: The success notification for @latest releases now includes a direct link to the VERSION bump PR and an "ASAP review" callout. The notification was also
    moved to fire after the PR is created so the link is available.

These changes improve the reliability and transparency of the SDK release process.

Examples of the new messages:


Deploy fail — @next (trunk, cicd_comp_deployment-phase.yml)
🔴 SDK publish FAILED on trunk!

The automated SDK @next publish failed. The packages were not updated on the NPM registry.
Commit:


Deploy success — @latest (manual, cicd_manual-release-sdks.yml)
🟢 Attention dotters: SDK libs (Angular, Client, Experiments and React) officially released!

This automated script is happy to announce that a new SDK libs version tagged as:
[ 1.3.0 (latest) and 1.3.0-next.12345 (next) ] is now available on the NPM registry 📦!
Release type: patch | Triggered by: kevin.davila
📝 Please review and merge the post-release PR ASAP:


Deploy success — @next (trunk, cicd_comp_deployment-phase.yml)
🟠 Attention dotters: SDK libs (Angular, Client, Experiments and React) published!

This automated script is happy to announce that a new SDK libs version tagged as:
[ 1.3.0-next.12345 (next) ] is now available on the NPM registry 📦!
Introduced by: <link to PR #456>


Deploy fail — @latest (manual, cicd_manual-release-sdks.yml)
🔴 SDK Release FAILED!

The SDK release workflow failed while trying to publish version 1.3.0.
Release type: patch | Triggered by: kevin.davila

This PR fixes: #35670

… idempotent branch handling

- Added Slack notifications for SDK publish failures to alert on unsuccessful attempts.
- Implemented idempotent handling for release branches, resetting to main if the branch already exists.
- Improved post-release PR creation logic to reuse existing PRs if they were created in previous runs.
- Updated Slack notifications for successful SDK releases to include links to the post-release PR for quick review.

These changes improve the reliability and transparency of the SDK release process.
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 19, 2026

Claude finished @KevinDavilaDotCMS's task in 48s —— View job


Rollback Safety Analysis

  • Read rollback-unsafe categories reference
  • Analyze PR diff against every category
  • Apply appropriate label

Result: ✅ Safe to Rollback

This PR modifies only two GitHub Actions workflow files:

  • .github/workflows/cicd_comp_deployment-phase.yml
  • .github/workflows/cicd_manual-release-sdks.yml

The changes are CI/CD-only — Slack failure notifications, idempotent branch handling for sdk/release-X.Y.Z / sdk/post-release-X.Y.Z, and a post-release PR link in the success message. None of the rollback-unsafe categories (C-1…C-4, H-1…H-7, M-1…M-4) apply: no DB migrations, no Elasticsearch mapping changes, no data model or JSON model version bumps, no REST/GraphQL contract changes, no OSGi interface changes, no storage provider changes.

Label AI: Safe To Rollback applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI: Safe To Rollback Area : CI/CD PR changes GitHub Actions/workflows

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Enhance SDK Publication Workflow: Error Notifications & Manual 'Next' Tag Generation

1 participant