@@ -239,7 +239,18 @@ slightly different steps. We'll call attention where the steps differ.
239239 git tag -s -u YOURKEYID php-X.Y.ZRCn -m "Tag for php-X.Y.ZRCn"
240240 ```
241241
242- 9. 🔷 **For post-GA releases only,** switch back to the *version branch* for
242+ 9. 🔸 **For pre-GA releases only,** switch back to the `master` (for alphas and betas),
243+ or `PHP-X.Y` (for RCs), and update a `NEWS` for the new version. See
244+ [Update NEWS for PHP 8.2.0 alpha2][] and [Update NEWS for PHP 8.2.0RC6][] for a real example.
245+
246+ Commit the changes to the `master` (or `PHP-X.Y`) branch.
247+
248+ ```shell
249+ git add -p
250+ git commit --gpg-sign=YOURKEYID -m "[ci skip] Update NEWS for PHP X.Y.Z alpha2"
251+ ```
252+
253+ 🔷 **For post-GA releases only,** switch back to the *version branch* for
243254 your release (e.g., `PHP-8.2`) and bump the version numbers in
244255 `main/php_version.h`, `Zend/zend.h`, `configure.ac` and `NEWS`. This prepares
245256 the version branch for the next version.
@@ -1086,6 +1097,8 @@ volunteers to begin the selection process for the next release managers.
10861097[Update versions for PHP 8.1.6RC1]: https://github.com/php/php-src/commit/40e8ced23898e3069340ca03ea5febc5361015ad
10871098[Update NEWS for PHP 8.1.6RC1]: https://github.com/php/php-src/commit/a4fdeaebe419b88e3b4a1f5aba845c2d4e81fd4e
10881099[Prepare for PHP 8.1.0RC1]: https://github.com/php/php-src/commit/5764414eb8900ae98020a3c20693f4fb793efa99
1100+ [Update NEWS for PHP 8.2.0 alpha2]: https://github.com/php/php-src/commit/418f7211f71658d79d934861be20f277db96fe2c
1101+ [Update NEWS for PHP 8.2.0RC6]: https://github.com/php/php-src/commit/4ccc414961a70200d638ca281a35f893226d74e2
10891102[Bump for 8.1.8-dev]: https://github.com/php/php-src/commit/3b6ee1eb19c14c3339ebfcf5c967065a9f828971
10901103[GitHub command line tool]: https://cli.github.com
10911104[Announce 8.1.0RC3]: https://github.com/php/web-qa/commit/f264b711fd3827803b79bbb342959eae57ea502b
0 commit comments