Releasing

Branches

Branch Holds A push runs
feature branches One change each CI on its pull request into dev
dev Everything queued for the next release Checks, then a development build
main What has been released Full CI; releases are cut from here

Changes reach dev by pull request. Dependabot opens its pull requests against dev too.

CI (.github/workflows/ci.yml)

Job Runs
Checks Lint JS, CSS and PHP, translation template, build and size budgets
Test JS Jest
E2E + PHPUnit The end-to-end suite, then the PHP tests (after Checks pass)
Audit dependencies npm audit, failing on high runtime or critical dev advisories
Development build On dev only: packages the plugin

On a push to dev, Test JS and E2E are skipped: the pull request already ran them.

Development builds

Each green push to dev replaces the dev-build prerelease on GitHub Releases: a zip stamped with the last release's version plus -dev.<run> (such as 2.12.1-dev.200). Install it on a test site by uploading it under Plugins → Add New → Upload Plugin and choosing Replace current with uploaded.

Cutting a release

  1. Write the release notes under Unreleased in CHANGELOG.md, grouped under **Added**, **Changed** and **Fixed**. Add an Upgrade Notice to readme.txt when sites need to know something before updating.
  2. Merge dev into main.
  3. On main, run npm run release -- minor (or patch, major, or an exact x.y.z). It bumps the version everywhere, moves the Unreleased notes under the new version, writes the same entry into readme.txt's changelog, commits, tags and pushes. It stops if there are no Unreleased notes.
  4. The tag runs .github/workflows/release.yml, which:
    • waits for CI to pass on the tagged commit, and stops if it doesn't
    • builds the zip and attaches it to a GitHub Release
    • deploys to the WordPress.org plugin directory, once the SVN_USERNAME and SVN_PASSWORD secrets are set

npm run release -- patch --dry-run shows what would change without touching anything.

Translations

Translations come from WordPress.org's language packs. npm run makepot regenerates languages/glidepress-slider.pot; CI fails when a translatable string has changed without it.