Skip to content

Commit f33ee6c

Browse files
authored
Update HOW_TO_RELEASE.md to reflect inability to push to main (#10497)
Addresses the comment in #10496
1 parent 6e2f9c3 commit f33ee6c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

HOW_TO_RELEASE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ upstream https://github.com/pydata/xarray (push)
5252
5353
6. After merging, again ensure your main branch is synced to upstream:
5454
```sh
55+
git switch main
5556
git pull upstream main
5657
```
5758
7. If you have any doubts, run the full test suite one final time!
@@ -98,14 +99,15 @@ upstream https://github.com/pydata/xarray (push)
9899
99100
```
100101

101-
12. Commit your changes and push to main again:
102+
12. Make a PR with these changes and merge it:
102103

103104
```sh
104-
git commit -am 'New whatsnew section'
105-
git push upstream main
105+
git checkout -b empty-whatsnew-YYYY.MM.X+1
106+
git commit -am "empty whatsnew"
107+
git push
106108
```
107109

108-
You're done pushing to main!
110+
(Note that repo branch restrictions prevent pushing to `main`, so you have to just-self-merge this.)
109111

110112
13. Update the version available on pyodide:
111113

0 commit comments

Comments
 (0)