Skip to content

Commit 6337931

Browse files
RafaelGSStargos
authored andcommitted
doc: add command to keep major branch sync
PR-URL: #50102 Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent ffdc357 commit 6337931

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/contributing/releases.md

+14
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,20 @@ 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+
> Make sure to check that there are no PRs with the label `dont-land-on-vX.x`.
1214+
1215+
```bash
1216+
git checkout vN.x
1217+
git reset --hard upstream/main
1218+
git checkout vN.x-staging
1219+
git reset --hard upstream/main
1220+
git push upstream vN.x
1221+
git push upstream vN.x-staging
1222+
```
1223+
12101224
### Update `NODE_MODULE_VERSION`
12111225

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

0 commit comments

Comments
 (0)