Repository navigation
ci: run Release Draft in a release environment - #85
Merged
Merged
Conversation
thomson-t
approved these changes
Nov 17, 2026
thomson-t
left a comment
Contributor
There was a problem hiding this comment.
Add the release environment to the draft workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Release automation should hold release credentials only where releases run. Release Draft read the release GitHub App's credentials from repository-level secrets, which every workflow on every branch can read.
Programme
Standalone change, no programme.
What changes
releaseenvironment, which allows onlymaster, and reads the release GitHub App's credentials from it. Its branch check stays as a second line.No changelog entry, because nothing in the published package changes.
Linked work
Related: the same change in ROKT/rokt-sdk-react-native#336.
Rollout
Path: CI only; nothing is published.
releaseenvironment is created allowing onlymaster, and the credentials are added to it.Feature flags: none.
Turning it off: revert this pull request.
What we watch: the next Release Draft succeeds.
Risks
Risk class: low.
Who
Written by: an automated coding agent (Claude Code), at an engineer's request.
Code reviewed before opening: an independent review agent; no person yet.
Checked: the changed workflow passes actionlint.
Not checked yet: the
releaseenvironment, which is created before merging (Rollout step 1).Not checked: a run on a real runner, which the next Release Draft after merging covers.
Size
Hand-written: 2 files, 3 lines added.
Generated: none.