بنقرة واحدة
release
Execute a complete release for the OpenPix WooCommerce plugin (GitHub tag, PR, merge, SVN, GitHub Release)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Execute a complete release for the OpenPix WooCommerce plugin (GitHub tag, PR, merge, SVN, GitHub Release)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | release |
| description | Execute a complete release for the OpenPix WooCommerce plugin (GitHub tag, PR, merge, SVN, GitHub Release) |
| disable-model-invocation | true |
| argument-hint | [patch|minor|major] |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write |
Execute a full release cycle for the OpenPix WooCommerce plugin. This includes bumping the version, creating a GitHub PR, merging it, publishing to WordPress.org SVN, and creating a GitHub Release with the zip asset.
$ARGUMENTS determines the release type: patch (default), minor, or majorpatchThe package.json version is NOT updated by the release scripts and may lag behind the actual release version. Both scripts/changelog.ts and scripts/svn-release.ts and scripts/update_release.ts read version from package.json, which causes incorrect version numbers.
Workarounds required:
--version <current-release-version> instead of using pnpm release:patchsvn copyCIRCLE_TAG=v<new-version> env var when runningBefore starting, verify:
main branch with clean working tree (git status).env file exists with SVN_USERNAME, SVN_PASSWORD, SVN_REPO_URL, GITHUB_TOKENsvn, gh, pnpm are installedgit log $(git describe --tags --abbrev=0)..HEAD --oneline)git describe --tags --abbrev=0 (e.g., v2.13.7)v prefix to get CURRENT_VERSION (e.g., 2.13.7)NEW_VERSION by incrementing CURRENT_VERSION based on the release type argument (patch/minor/major)Run the changelog script directly (bypassing pnpm to pass --version correctly):
node -r esbuild-register ./scripts/changelog --<release-type> --version <CURRENT_VERSION>
This will:
CHANGELOG.md, readme.txt, openpix-for-woocommerce.phpfeature-production/<date> branchv<NEW_VERSION>Verify the output shows the correct NEW_VERSION in the PR title.
gh pr merge --squash
Then pull latest main:
git checkout main && git pull origin main
Verify version files are updated:
openpix-for-woocommerce.php has Version: <NEW_VERSION>readme.txt has Stable tag: <NEW_VERSION>CHANGELOG.md has <NEW_VERSION> entryRun the SVN release script:
pnpm release:svn
IMPORTANT: This script reads version from package.json which is likely wrong. After it completes:
cd <svn-working-directory> && svn copy tags/<wrong-version> tags/<NEW_VERSION>
.env (be careful with special chars - use grep + cut instead of source):SVN_USERNAME=$(grep '^SVN_USERNAME=' .env | cut -d= -f2)
SVN_PASSWORD=$(grep '^SVN_PASSWORD=' .env | cut -d= -f2)
svn ci tags/<NEW_VERSION> -m "version <NEW_VERSION>" --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --config-option servers:global:http-compression=yes --config-option servers:global:http-timeout=0
svn ls https://plugins.svn.wordpress.org/openpix-for-woocommerce/tags/<NEW_VERSION>/Note: SVN commits can take several minutes due to the vendor/ directory.
ls woocommerce-openpix-prod-v*.zipCIRCLE_TAG=v<NEW_VERSION> pnpm publish:tag -- --asset=./<zip-filename>
gh release view v<NEW_VERSION>Run all verification checks and present a summary table:
| Check | Status |
|---|---|
| GitHub PR merged | |
Git tag v<NEW_VERSION> | |
| GitHub Release with zip | |
| SVN tag on WordPress.org | |
| SVN trunk updated | |
| PHP Version header | |
| readme.txt Stable tag | |
| CHANGELOG.md entry |
gh release delete v<VERSION> --yes && git tag -d v<VERSION> && git push --delete origin v<VERSION>.env has SVN_USERNAME, SVN_PASSWORD, SVN_REPO_URL--no-verify flag alreadypack.sh prod ran successfully (Step 4 does this automatically)package.json version drift. Always pass --version explicitly to the changelog scriptThe SVN working copy is located at ../openpix-for-woocommerce relative to the project root (i.e., /home/hallexcosta/woovi-wordpress-dev/openpix-for-woocommerce).