Skip to content

Rework release workflow#350

Merged
JanJakes merged 2 commits intotrunkfrom
release-workflow
Apr 2, 2026
Merged

Rework release workflow#350
JanJakes merged 2 commits intotrunkfrom
release-workflow

Conversation

@JanJakes
Copy link
Copy Markdown
Member

@JanJakes JanJakes commented Apr 2, 2026

Summary

Replace the draft-release-triggered CI workflow with a local prepare-release.sh script and a simplified publish workflow.

GitHub does not fire release events for draft releases, so the release-prepare workflow could never trigger. The new approach uses a non-interactive script (bin/prepare-release.sh <version>) that bumps versions, generates a changelog from merged PRs, creates a release branch, and opens a PR. Merging the PR triggers the build and GitHub release automatically.

Also adds pre-release support: versions with a hyphen (e.g., 2.3.0-beta.1) are marked as pre-release and skip WordPress.org deployment.

JanJakes added 2 commits April 2, 2026 10:04
GitHub does not fire release events for draft releases, so the
release-prepare workflow could never trigger. Replace it with an
interactive local script (bin/prepare-release.sh) that bumps versions,
generates a changelog from merged PRs, and creates a release branch.

Rework release-publish to build the plugin zip and create a GitHub
release when the release PR is merged to trunk.
Versions with a hyphen (e.g., 2.3.0-beta.1) are marked as prerelease
on the GitHub release. The WordPress.org deploy workflow skips these.
@JanJakes
Copy link
Copy Markdown
Member Author

JanJakes commented Apr 2, 2026

All green. I will test this one on trunk.

@JanJakes JanJakes merged commit d9492e4 into trunk Apr 2, 2026
16 checks passed
@JanJakes JanJakes deleted the release-workflow branch April 2, 2026 09:09
This was referenced Apr 2, 2026
JanJakes added a commit that referenced this pull request Apr 2, 2026
## Release `2.2.21`

Version bump and changelog update for release `2.2.21`.

**Changelog draft:**
* Rework release workflow
([#350](#350))
* Monorepo setup + release automation
([#334](#334))
* Fix incorrect PHP polyfill implementations
([#338](#338))

**Full changelog:**
v2.2.20...release/v2.2.21

## Next steps

1. **Review** the changes in this pull request.
2. **Push** any additional edits to this branch (`release/v2.2.21`).
3. **Merge** this pull request to complete the release.

Merging will automatically build the plugin ZIP, create a [GitHub
release](https://github.com/WordPress/sqlite-database-integration/releases),
and deploy to
[WordPress.org](https://wordpress.org/plugins/sqlite-database-integration/).
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