@@ -1420,6 +1420,17 @@ created as forks of the `main` branch. Alpha releases should be released picking |
1420 | 1420 | up commits from `main`. Target the first alpha release to be released the same |
1421 | 1421 | day as the previous release line is graduated to LTS status. |
1422 | 1422 |
|
| 1423 | +Pushing the new branches is rejected by the [Require linear history][] |
| 1424 | +repository rule, because creating a branch evaluates its whole history and |
| 1425 | +`main` contains merge commits from 2015. A repository admin must disable the |
| 1426 | +rule, push the branches, and enable it again: |
| 1427 | + |
| 1428 | +```bash |
| 1429 | +gh api -X PUT repos/nodejs/node/rulesets/714811 -f enforcement=disabled |
| 1430 | +git push upstream main:refs/heads/vN.x main:refs/heads/vN.x-staging |
| 1431 | +gh api -X PUT repos/nodejs/node/rulesets/714811 -f enforcement=active |
| 1432 | +``` |
| 1433 | + |
1423 | 1434 | If a `SEMVER-MAJOR` pull request lands on the default branch within one month |
1424 | 1435 | prior to the major release date, it must not be included on the new major |
1425 | 1436 | staging branch, unless there is consensus from the Node.js releasers team to |
@@ -1708,6 +1719,7 @@ Typical resolution: sign the release again. |
1708 | 1719 | [Build issue tracker]: https://github.com/nodejs/build/issues/new |
1709 | 1720 | [Node.js Snap management repository]: https://github.com/nodejs/snap |
1710 | 1721 | [Release repository]: https://github.com/nodejs/Release |
| 1722 | +[Require linear history]: https://github.com/nodejs/node/rules/714811 |
1711 | 1723 | [Semantic Versioning]: https://semver.org/ |
1712 | 1724 | [Snap]: https://snapcraft.io/node |
1713 | 1725 | [`create-release-post.yml`]: https://github.com/nodejs/nodejs.org/actions/workflows/create-release-post.yml |
|