Skip to content

ci(release): wait for an approval before tagging a release - #119

Merged
mogita merged 1 commit into
masterfrom
ci/release-approval
Nov 27, 2026
Merged

mogita merged 1 commit into
masterfrom
ci/release-approval

Conversation

@mogita

@mogita mogita commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Problem

In stream-sdk-java, getstream-net, getstream-ruby and stream-py a release is published only after a reviewer approves the publish environment. This repo has no publish step: Packagist reads a tag as soon as it exists, so merging the Release PR ships at once.

Solution

  • The tag job of release.yml runs in a new release environment. The environment is already set up with the same two required reviewers as the other SDKs' publish environments, and deploys from master and *.x.
  • A merged Release PR now waits for that approval before the tag and the GitHub Release exist. Pushes that release nothing skip the job, so they ask for no approval.
  • The release docs say so.

How to verify

  1. Merge the next Release PR.
  2. The Release run stops at "Tag and release", waiting for review, and no new tag appears.
  3. Approve it: the tag and the GitHub Release are created as before.

The tag job runs in the release environment, so a merged Release PR is tagged only after a reviewer approves, the same as the publish step of the other server-side SDKs. Packagist reads a tag as soon as it exists.
@mogita
mogita merged commit 6632a21 into master Nov 27, 2026
10 checks passed
@mogita
mogita deleted the ci/release-approval branch November 27, 2026 15:37
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