Skip to content

Add GitHub Actions workflow for private composer releases#12

Merged
throttlehead-dev merged 10 commits intomainfrom
patch/composer-autorelease-workflow
Feb 20, 2026
Merged

Add GitHub Actions workflow for private composer releases#12
throttlehead-dev merged 10 commits intomainfrom
patch/composer-autorelease-workflow

Conversation

@throttlehead-dev
Copy link
Contributor

@throttlehead-dev throttlehead-dev commented Feb 20, 2026

Summary

This pull request introduces a new GitHub Actions workflow for automating Composer package releases for private repositories. The workflow handles version bumping based on branch naming conventions, generates a GitHub App token for authentication, and triggers a downstream workflow in a private package repository.

Key changes in the new workflow:

Release automation and versioning:

  • Adds a workflow (_private_composer_gh_auto_release.yaml) that determines the type of semantic version bump (major, minor, patch) based on the branch name (e.g., major/, minor/, patch/, etc.), and calculates the next version accordingly.
  • Retrieves the latest release version using the GitHub CLI and prepares the new version for release.

Authentication and environment setup:

  • Generates a GitHub App token for secure operations such as checking out the repository and interacting with the GitHub API.
  • Sets up the PHP environment and caches Composer dependencies for faster builds.

Release and downstream workflow triggering:

  • Triggers a workflow in a specified private package repository after the release process completes.

Notes

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a GitHub Actions workflow for automating private Composer package releases. The workflow extracts the branch name from PR or merge commits, determines semantic version bumps based on branch naming conventions (e.g., feature/ → minor, patch/ → patch), calculates the next version from the latest GitHub release, creates a Git tag and release, and triggers a downstream workflow in a private Composer registry repository.

Changes:

  • Adds automated release workflow that determines version bumps from branch name patterns
  • Implements GitHub App token-based authentication for release operations
  • Sets up PHP/Composer environment and version management logic
  • Triggers downstream workflow in private package repository after release

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@throttlehead-dev throttlehead-dev merged commit c87e840 into main Feb 20, 2026
@throttlehead-dev throttlehead-dev deleted the patch/composer-autorelease-workflow branch February 20, 2026 18:28
@throttlehead-dev throttlehead-dev restored the patch/composer-autorelease-workflow branch February 20, 2026 18:30
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