Skip to content

Commit dce4619

Browse files
committed
doc: add command to keep major branch sync
1 parent 6b599a3 commit dce4619

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/contributing/releases.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,18 @@ Notify the `@nodejs/npm` team in the release proposal PR to inform them of the
12071207
upcoming release. `npm` maintains a list of [supported versions](https://github.com/npm/cli/blob/latest/lib/utils/unsupported.js#L3)
12081208
that will need updating to include the new major release.
12091209

1210+
To keep the branch in sync until the release date, it can be as simple as
1211+
doing the following:
1212+
1213+
```bash
1214+
git checkout vN.x
1215+
git reset --hard upstream/main
1216+
git checkout vN.x-staging
1217+
git reset --hard upstream/main
1218+
git push upstream vN.x
1219+
git push upstream vN.x-staging
1220+
```
1221+
12101222
### Update `NODE_MODULE_VERSION`
12111223

12121224
This macro in `src/node_version.h` is used to signal an ABI version for native

0 commit comments

Comments
 (0)