This repository is a monorepo for WordPress plugins. Each plugin lives in plugins/<slug>/, is versioned independently, and can be released to GitHub and WordPress.org on its own.
Inspired by the sahajananddigital/wordpress-plugins monorepo layout.
wordpress-plugins/
├── .github/
│ ├── workflows/
│ │ ├── release-plugins.yml # GitHub Release + WordPress.org SVN deploy
│ │ ├── verify-plugins.yml # CI: validate release zip includes build/
│ │ ├── deploy-wordpress-org.yml # Manual WordPress.org SVN deploy
│ │ └── deploy-wordpress-org-assets.yml
│ └── wporg-plugins.json # Plugins auto-deployed to WordPress.org
├── docker/
│ ├── kitten-tts-api/ # Self-hosted KittenTTS API (API mode)
│ └── wordpress-local/ # Local WordPress for plugin development
├── plugins/
│ └── sahajanand-post-to-speech/ # Sahajanand Post to Speech Gutenberg block
├── scripts/
│ ├── bump-plugin-version.sh # Version bump helper
│ ├── stage-plugin.sh # Build + .distignore staging
│ ├── pack-plugin.sh # Create release zip (requires build/)
│ ├── deploy-wordpress-org.sh # SVN trunk/tags/assets deploy
│ ├── pressship-assets.sh # Upload .wporg_assets to WordPress.org
│ └── pressship.sh # WordPress.org publish helper (Pressship)
├── composer.json # Shared PHP dev dependencies
├── phpcs.xml.dist
├── phpunit.xml.dist
├── LICENSE
└── README.md
| Plugin | Description | WordPress.org |
|---|---|---|
| sahajanand-post-to-speech | Convert posts to audio with a Gutenberg block — browser WASM or API mode | wordpress.org/plugins/sahajanand-post-to-speech |
Current version: 1.0.1
cd docker/wordpress-local
docker compose up -d- WordPress: http://localhost:8888
- Admin:
admin/admin123 - The plugin is mounted from
plugins/sahajanand-post-to-speech/
See docker/wordpress-local/README.md for debugging, resets, and KittenTTS API setup.
cd plugins/sahajanand-post-to-speech
npm install
npm run buildBlock plugins register from build/ — the compiled output must be present for the block to work on WordPress.org installs.
From the repo root:
composer install
composer lint # Run PHPCS
composer lint:fix # Auto-fix coding standard issues
composer test # Run PHPUnitSelf-host a pay-per-request KittenTTS API for the plugin's API mode:
cd docker/kitten-tts-api
cp .env.example .env
docker compose up --buildSee docker/kitten-tts-api/README.md for endpoints, billing, and WordPress setup.
Releases are driven by version detection in each plugin's main PHP file. You do not need to manually create git tags.
# List plugins and current versions
./scripts/bump-plugin-version.sh --list
# Bump patch (default), minor, or major
./scripts/bump-plugin-version.sh sahajanand-post-to-speech patch
# Set an exact version
./scripts/bump-plugin-version.sh sahajanand-post-to-speech 1.0.2
# Via Composer
composer bump -- sahajanand-post-to-speech patchOr update the Version: header in plugins/sahajanand-post-to-speech/sahajanand-post-to-speech.php, then commit and push to master / main.
- Push a version bump to
master/main. release-plugins.ymldetects the new version, runsnpm run build, creates a tag likesahajanand-post-to-speech/v1.0.1, and publishes a GitHub Release zip.- For plugins listed in
.github/wporg-plugins.json, the same workflow deploys to WordPress.org SVN (trunk,tags/<version>, andassets/).
Tag pushes from GitHub Actions do not trigger other workflows, so WordPress.org deploy runs in the release workflow itself.
CI: .github/workflows/verify-plugins.yml runs on every push/PR that touches plugins/ and validates the release zip includes build/block.json.
Add a .distignore file in the plugin root to exclude dev files from the release zip. Example:
tests/
node_modules/
src/
package.json
package-lock.json
.gitignore
.distignore
.wporg_assets/
The pack step uses scripts/stage-plugin.sh and scripts/pack-plugin.sh, which require build/block.json for block plugins.
Pressship handles validation, packaging, review submission, and SVN releases.
Requirements: Node.js 20+, a WordPress.org account, PHP (for Plugin Check), and svn (for approved-plugin releases).
./scripts/pressship.sh login
./scripts/pressship.sh whoami
./scripts/pressship.sh info sahajanand-post-to-speech
./scripts/pressship.sh status sahajanand-post-to-speech
./scripts/pack-plugin.sh sahajanand-post-to-speech
./scripts/pressship.sh verify sahajanand-post-to-speech
./scripts/pressship.sh publish sahajanand-post-to-speech --dry-run
./scripts/pressship.sh publish sahajanand-post-to-speech
./scripts/pressship.sh demo sahajanand-post-to-speechpublish routes automatically: new plugins go through review (submit); approved plugins release to SVN (release).
Plugins in .github/wporg-plugins.json deploy automatically when a new version is released:
{
"sahajanand-post-to-speech": {
"slug": "sahajanand-post-to-speech"
}
}GitHub secrets (repo → Settings → Secrets and variables → Actions):
| Secret | Value |
|---|---|
WORDPRESS_USERNAME |
Your WordPress.org username |
WORDPRESS_PASSWORD |
A WordPress.org application password |
You can also deploy manually via Actions → Deploy to WordPress.org → Run workflow, or locally:
WORDPRESS_USERNAME=youruser WORDPRESS_PASSWORD='xxxx xxxx xxxx xxxx' \
bash scripts/deploy-wordpress-org.sh sahajanand-post-to-speech 1.0.1
bash scripts/deploy-wordpress-org.sh sahajanand-post-to-speech 1.0.1 --dry-runAdd files under plugins/<slug>/.wporg_assets/. Include blueprints/blueprint.json for the WordPress.org Live Preview demo (Playground). Pushing changes there runs deploy-wordpress-org-assets.yml, or upload manually:
./scripts/pressship-assets.sh sahajanand-post-to-speech
./scripts/pressship-assets.sh sahajanand-post-to-speech --dry-runThese are gitignored or should never live in the repo:
| Path | Reason |
|---|---|
*.zip |
Release artifacts |
build_dir/ |
Staging output |
.pressship-svn/ |
Local SVN checkout |
/sahajanand-post-to-speech/ (repo root) |
Duplicate of plugins/sahajanand-post-to-speech/ |
node_modules/ |
Install via npm install |
.phpunit.result.cache |
PHPUnit cache |
The canonical plugin path is plugins/sahajanand-post-to-speech/ only.
Make changes inside plugins/sahajanand-post-to-speech/ and open a pull request. CI validates the release zip before merge.