Skip to content

Add automated release workflow & fix failing tests#113

Merged
pwtyler merged 7 commits into
mainfrom
feat/automated-release-workflow
Apr 29, 2026
Merged

Add automated release workflow & fix failing tests#113
pwtyler merged 7 commits into
mainfrom
feat/automated-release-workflow

Conversation

@pwtyler
Copy link
Copy Markdown
Member

@pwtyler pwtyler commented Apr 24, 2026

Description

Implements automated release gating via GitHub Actions. The version string in pantheon.php controls whether a push to main triggers a release.

  • Version ends in -dev → no-op, normal development state
  • Version has no -dev suffix → workflow tags, publishes a GitHub Release with auto-generated notes, then opens an auto-merging PR bumping to the next patch -dev

Changes

  • pantheon.php: Bumped to 1.5.7-dev (last manually released version was 1.5.6)
  • .github/workflows/release.yml: New release workflow using the native gh CLI (no third-party release action), SHA-pinned checkout
  • .github/workflows/test.yml: Remove scheduled (daily) trigger — tests run on push only
  • .github/PULL_REQUEST_TEMPLATE.md: New PR template with release reminder table
  • CONTRIBUTING.md: Replaces manual release process docs with automated process docs

How the release gate works

Version in pantheon.php What happens on merge to main
X.Y.Z-dev Nothing — normal dev state
X.Y.Z (patch) Tag + release + bump to X.Y.Z+1-dev PR
X.Y.0 (minor) Tag + release + bump to X.Y.1-dev PR

The version bump is opened as a PR with auto-merge enabled. Since there are no required status checks on main, it merges immediately.

Notes

  • Uses GITHUB_TOKEN throughout — no PAT required
  • Bot identity matches existing lint.yml: bot@getpantheon.com / Pantheon Robot

- Releases are now gated by the version string in pantheon.php
- If version ends in -dev, pushes to main are no-ops
- If version has no -dev suffix, the workflow tags, publishes a GitHub
  Release with auto-generated notes, then opens an auto-merging PR to
  bump to the next patch -dev version
- Add PR template with release reminder table
- Update CONTRIBUTING.md to document the new process
- Bump version to 1.5.7-dev (last released was 1.5.6)
@codacy-production
Copy link
Copy Markdown
Contributor

codacy-production Bot commented Apr 24, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Comment thread .github/PULL_REQUEST_TEMPLATE.md Outdated
Co-authored-by: Phil Tyler <philip@tylerdigital.com>
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
@pwtyler pwtyler marked this pull request as ready for review April 24, 2026 23:33
@pwtyler pwtyler requested review from a team as code owners April 24, 2026 23:33
Comment thread CONTRIBUTING.md Outdated
@pwtyler pwtyler changed the title feat: add automated release workflow Add automated release workflow & fix failing tests Apr 28, 2026
@pwtyler pwtyler merged commit 530eaa9 into main Apr 29, 2026
16 checks passed
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.

4 participants