Skip to content

ci: run the release draft in a release environment (3.x) - #474

Merged
nickolas-dimitrakas merged 1 commit into
ci/android-checks-3.xfrom
ci/release-environment-3.x
Nov 18, 2026
Merged

nickolas-dimitrakas merged 1 commit into
ci/android-checks-3.xfrom
ci/release-environment-3.x

Conversation

@nickolas-dimitrakas

@nickolas-dimitrakas nickolas-dimitrakas commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Why

Release automation should hold its release powers only on the branches we release from. #470 moved the credentials that open release pull requests on main into the release environment. This brings the version 3 maintenance line in line, so the repository-wide copies can be removed without breaking a 3.x release.

What changes

The same change as #470, applied to maintenance/3.x.

  • Release Draft runs in the release environment. Its GitHub App credentials come from that environment's secrets, and the environment allows only main and maintenance/3.x. The major-bump check inside the workflow stays as a second line.
  • Trunk Upgrade no longer creates a GitHub App token. Actions was already discarding it, because a job output that holds a secret is skipped, so the shared workflow used github.token. Its behaviour is unchanged.

No changelog entry, because nothing in the published package changes.

Linked work

Depends on: the Android checks fix for maintenance/3.x (this pull request's base), which should merge first.
Related: #470, the same change on main.

Rollout

CI only; nothing is published. The release environment already allows maintenance/3.x and holds the credentials. The repository-level copies stay until a Release Draft run through the environment succeeds.

Turning it off: revert this pull request.

What we watch: the next Release Draft run on maintenance/3.x opens its release pull request. A failure at the "Generate GitHub App token" step means the environment's secrets are wrong or missing.

Risk class: low.

🤖 Generated with Claude Code

@nickolas-dimitrakas
nickolas-dimitrakas requested a review from a team as a code owner November 17, 2026 23:36
@nickolas-dimitrakas nickolas-dimitrakas self-assigned this Nov 17, 2026
Copilot AI balanced review requested due to automatic review settings November 17, 2026 23:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Repository access was denied, preventing verification that the reusable workflow’s token input is optional and defaults to github.token, so authentication behavior after omitting the explicit argument remains unconfirmed.

No open issues 🎉

What changed in this PR

Aligns release automation on maintenance/3.x with the environment-based setup introduced for main in #470. These changes affect CI only; the published package is unchanged.

Changes:

  • Runs Release Draft in the release environment while retaining the existing major-bump guard.
  • Removes Trunk Upgrade’s unused GitHub App token generation and associated job dependency.
File Description
.github/​workflows/​trunk-upgrade.yml Removes token generation and calls the shared upgrade workflow directly.
.github/​workflows/​release-draft.yml Assigns the release PR job to the release environment.

Review effort: Balanced

@nickolas-dimitrakas
nickolas-dimitrakas changed the base branch from maintenance/3.x to ci/android-checks-3.x November 17, 2026 23:42
thomson-t
thomson-t previously approved these changes Nov 17, 2026

@thomson-t thomson-t left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@thomson-t thomson-t left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@nickolas-dimitrakas
nickolas-dimitrakas merged commit f396967 into maintenance/3.x Nov 18, 2026
11 checks passed
@nickolas-dimitrakas
nickolas-dimitrakas deleted the ci/release-environment-3.x branch November 18, 2026 02:17
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.

3 participants