From e4cd2f0425d7e9d6c33dea9180c656ad24715db6 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Thu, 20 Nov 2025 11:03:13 +0000 Subject: [PATCH 1/2] Add: Documentation for the release process. --- docs/releasing-a-new-package-version.md | 122 ++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 docs/releasing-a-new-package-version.md diff --git a/docs/releasing-a-new-package-version.md b/docs/releasing-a-new-package-version.md new file mode 100644 index 0000000..44c6813 --- /dev/null +++ b/docs/releasing-a-new-package-version.md @@ -0,0 +1,122 @@ +# Release Process Guide: `abilities-api` Composer Package + + + +This document outlines the official process for releasing a new version of the `abilities-api` composer package (repository: `https://github.com/WordPress/abilities-api`). + + + +> **Note:** The version `0.6` (and `v0.6.0`) is used as an example. Remember to replace this with the actual version you are releasing. + +* * * + +## ๐Ÿš€ Phase 1: Create the Release Branch + + + +1. **Create the Branch** - Create a new release branch from the trunk branch. + +``` +# Replace '0.6' with your new version` + +git checkout -b release/0.6 origin/trunk +``` + +2. **Update .gitignore** - Include the build files in the package, edit packages/client/.gitignore and remove the following lines: + + ``` + # Build output + build/ + build-module/ + build-types/ + ``` + +3. **Build the Package** - Run the clean and build scripts: + +* `run clean && npm run build` + +4. **Commit Build Files** - Add the newly created build files and commit them. + +* `git add . && git commit -m "Add build files for the client package"` + +5. **Push the Branch** - Push the new release branch to the origin repository. + +``` +# Replace '0.6' with your new version + +git push -u origin release/0.6 +``` + + + +* * * + + + +## ๐Ÿ“ฆ Phase 2: Create the RC (Release Candidate) + + + +1. Open [https://github.com/WordPress/abilities-api/releases/new](https://github.com/WordPress/abilities-api/releases/new). + +2. **Configure the RC Release** by filling out the form with the following details: + +* **Create a new tag:** Use the format `vX.Y.Z-rc` (e.g., `v0.6.0-rc`). + +* **Set the target:** Select the `release/0.6` branch you just pushed. + +* **Set the title:** Use the same value as the tag (e.g., `v0.6.0-rc`). + +* **Generate release notes:** Click the "Generate release notes" button and edit the generated notes as needed. + +3. **Set Release Options** + +* **Check** โœ… `Set as a pre-release`. + +* **Uncheck** โฌœ๏ธ `Set as the latest release`. + +4. **Publish and Verify** + +* Click "Publish release". + +* Wait a few minutes, then verify the new RC version appears on [Packagist](https://packagist.org/packages/wordpress/abilities-api). + + + +* * * + +## ๐Ÿงช Phase 3: Announce for Testing + + + +Post an announcement in the #core slack channel saying a new RC version is ready for testing, and ask users/developers to report any issues found in that version. + + + +* * * + +## โœ… Phase 4: Publish the Final Release + + + +**After testing is complete** promote the RC to the final release. + + + +1. **Find the RC Release** - Go to the GitHub Releases page, find the pre-release you just created (e.g., v0.6.0-rc), and click Edit. + +2. **Update Tag and Title** + +* **Create a new tag:** Change the tag to the final version (e.g., `v0.6.0`). + +* **Target:** Ensure the target remains your release branch (e.g., `release/0.6`). + +* **Title:** Remove the `-rc` suffix from the title (e.g., `v0.6.0`). + +3. **Update Release Options** + +* **Uncheck** โฌœ๏ธ `Set as a pre-release`. + +* **Check** โœ… `Set as the latest release`. + +4. **Publish the Final Release** - Click "Update release". This will make v0.6.0 the new official version. \ No newline at end of file From 2ca361a62461c15da523b74b1533482977cb1919 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Thu, 20 Nov 2025 11:33:48 +0000 Subject: [PATCH 2/2] update annoucement channel --- docs/releasing-a-new-package-version.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releasing-a-new-package-version.md b/docs/releasing-a-new-package-version.md index 44c6813..9296f0a 100644 --- a/docs/releasing-a-new-package-version.md +++ b/docs/releasing-a-new-package-version.md @@ -89,7 +89,7 @@ git push -u origin release/0.6 -Post an announcement in the #core slack channel saying a new RC version is ready for testing, and ask users/developers to report any issues found in that version. +Post an announcement in the #core-ai slack channel saying a new RC version is ready for testing, and ask users/developers to report any issues found in that version.