doc: add major version note to release guide

Adding a note on how to properly edit the the `src/node_version.h` file
when working on the cherry-pick step of the Release Guide when working
on a new major version release.

Signed-off-by: Ruy Adorno <ruyadorno@google.com>
PR-URL: https://github.com/nodejs/node/pull/45054
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Ruy Adorno authored and Danielle Adams committed 2023-01-03 08:38:20 -05:00
1 parent a8030b9517
commit b09c386208
1 file changed
+18
+18
View File
@@ -721,6 +721,24 @@ Revert all changes that were made to `src/node_version.h`:
$ git checkout --ours HEAD -- src/node_version.h
```
<details>
<summary>Major version release</summary>
On the main branch, instead of reverting changes made to `src/node_version.h`
edit it instead and:
* Increment `NODE_MAJOR_VERSION` by one
* Reset `NODE_PATCH_VERSION` to `0`
* Change `NODE_VERSION_IS_RELEASE` back to `0`
Amend the current commit to apply the changes:
```console
$ git commit --amend
```
</details>
Even if there are no conflicts, ensure that you revert all the changes that were
made to `src/node_version.h`.