You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
Summary:
Cleanup and clarification based on my experience performing some patch releases recently.
Closesfacebook/react-native#15020
Differential Revision: D5434893
Pulled By: hramos
fbshipit-source-id: a4f65f41cd112dd3225556d7199e7c23374a1b58
Copy file name to clipboardExpand all lines: Releases.md
+99-33Lines changed: 99 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
-
The list of releases with notes can be found at:
2
-
https://github.com/facebook/react-native/releases
1
+
# Releases Guide
2
+
3
+
This document serves as guide for release coordinators. You can find a list of releases and their release notes at https://github.com/facebook/react-native/releases
3
4
4
5
## Release schedule
5
6
7
+
React Native follows a monthly release train. Every month, a new branch created off master enters the Release Candidate phase, and the previous Release Candidate branch is released and considered stable.
The following are required for the local test suite to run:
29
34
- macOS with [Android dev environment set up](https://github.com/facebook/react-native/blob/master/ReactAndroid/README.md)
30
35
- At least 0.2.0 [react-native-cli](https://www.npmjs.com/package/react-native-cli) installed globally
31
36
32
-
####Check everything works
37
+
###Step 1: Check everything works
33
38
34
39
Before cutting a release branch, make sure CI systems [Travis](https://travis-ci.org/facebook/react-native) and [Circle](https://circleci.com/gh/facebook/react-native) are green.
35
40
@@ -45,7 +50,7 @@ This script bundles a react-native package locally and passes it to the `react-n
45
50
46
51
After `npm install` completes, the script prints a set of manual checks you have to do to ensure the release you are preparing is working as expected on both platforms.
47
52
48
-
#### Cut a release branch and push to github
53
+
###Step 2: Cut a release branch and push to GitHub
# You can use the --remote option to specify a Git remote other than the default "origin"
64
+
git push --tags
65
+
git push
59
66
```
60
67
61
68
Circle CI will automatically run the tests and publish to npm with the version you have specified (e.g `0.50.0-rc`) and tag `next` meaning that this version will not be installed for users by default.
62
69
63
-
Go to [Circle CI](https://circleci.com/gh/facebook/react-native), look for your branch on the left side and look the npm publish step.
70
+
Go to [Circle CI](https://circleci.com/gh/facebook/react-native) and look for the build triggered by your push (e.g. _0.50-stable, [0.50.0] Bump version numbers_), then scroll down to the npm publish step to verify the package was published successfully (the build will be red if not).
64
71
65
-
#### Make sure we have release notes
72
+
###Step 3: Write the release notes
66
73
67
74
Write the release notes, or post in [React Native Core Contributors](https://www.facebook.com/groups/reactnativeoss/) that the RC is ready to find a voluteer. You can also use [react-native-release-notes](https://github.com/knowbody/react-native-release-notes) to generate a draft of release notes.
68
75
@@ -85,87 +92,146 @@ Before posting the list of changes, consider asking one of contributors for thei
85
92
86
93
**Important**: For release candidate releases, make sure to check "This is a pre-release".
87
94
88
-
####Update `Breaking Changes` document
95
+
###Step 4: Update `Breaking Changes` document
89
96
90
97
Once the release is cut, go to the [page](https://github.com/facebook/react-native/wiki/Breaking-Changes) where all breaking changes are listed and create section for the release. Don't forget to move all breaking changes from `master` that are now part of the release.
91
98
92
99
When finished and there are breaking changes, include them in the release notes you just created.
93
100
94
-
#### Tweet about the rc release
101
+
###Step 5: Tweet about the RC release
95
102
96
103
Tweet about it! Link to release notes and say "please report issues" and link to the master issue to track bugs you created.
97
104
98
-
## IMPORTANT: Track bug reports from the community during the following month, ping owners to get them fixed
99
-
100
-
A good way to do this is to create a github issue and post about it so people can report bugs. Examples: [#14840](https://github.com/facebook/react-native/issues/14840), [#6087](https://github.com/facebook/react-native/issues/6087), [#5201](https://github.com/facebook/react-native/issues/5201)
105
+
### Step 6: IMPORTANT: Track bug reports from the community during the following month, ping owners to get them fixed
101
106
102
-
**Only cherry-pick small and non-risky bug fixes**. **Don't pick new features into the release** as this greatly increases the risk of something breaking. The main point of the RC is to let people to use it for a month and fix the most serious bugs.
107
+
Now that the release is out in the open, go ahead and create a GitHub issue titled "[[0.XX-RC] Commits to cherry-pick](https://github.com/facebook/react-native/issues/14713)" where 0.XX matches the release version. Use this issue to track bugs that have been reported for this particular release, including commits that should be cherry-picked in cases that a fix cannot wait until the next release.
103
108
104
109
-------------------
105
110
106
111
## How to release an RC update (e.g. 0.50.0-rc.1, 0.50.0-rc.2)
107
112
108
-
After cherry-picking 1-2 bug fixes, it is a good idea to do a new RC release so that people can test again. Having a few RC releases can also help people bisect in case we cherry-pick a bad commit by mistake.
113
+
The release is now in the open, people are finding bugs, and fixes have landed in master. People have been nominating fixes in the issue you created above. Use your best judgment to decide which commits merit an RC update. It's a good idea to do a new RC release when several small and non-risky bugs have been fixed. Having a few RC releases can also help people bisect in case we cherry-pick a bad commit by mistake.
114
+
115
+
**Only cherry-pick small and non-risky bug fixes**. **Don't pick new features into the release** as this greatly increases the risk of something breaking. The main point of the RC is to let people to use it for a month and fix the most serious bugs.
116
+
117
+
118
+
### Step 1: Check out the release branch
119
+
120
+
Follow these steps to check out the release branch:
Again, Circle CI will automatically run the tests and publish to npm with the version you have specified (e.g `0.50.0-rc.1`).
168
+
169
+
### Step 6: Update the release notes
170
+
171
+
Go to https://github.com/facebook/react-native/releases and find the release notes for this release candidate. Edit them so that they now point to the tag that you've just created. We want single release notes per version. For example, if there is v0.50.0-rc and you just released v0.50.0-rc.1, the release notes should live on the v0.50.0-rc.1 tag at https://github.com/facebook/react-native/tags
172
+
131
173
-------------------
132
174
133
-
## How to do the final release (e.g. 0.50.0, 0.50.1)
175
+
## How to do the final stable release (e.g. 0.50.0, 0.50.1)
176
+
177
+
A stable release is promoted roughly a month after the release branch is cut (refer to the schedule above). The release may be delayed for several reasons, including major issues in the release candidate. Make sure that all bug fixes that have been nominated in your tracking issue have been addressed as needed. Avoid cherry-picking commits that have not been vetted in the release candidate phase at this point.
134
178
135
-
Roughly a month after the branch cut (see the release schedule above) it's time to promote the last RC to a real release.
179
+
Once you are sure that the release is solid, perform the following steps. Note that they're similar to the steps you may have followed earlier when patching the release candidate, but we're not cherry-picking any additional commits at this point.
136
180
137
-
Once all bugfixes have been cherry-picked and you're sure the release is solid (example: [#6087](https://github.com/facebook/react-native/issues/6087)), do the release:
Once you see the version in the top left corner of the website has been updated:
163
-
Move the release notes to the tag you've just created. We want single release notes per version,
164
-
for example if there is v0.50.0-rc and later we release v0.50.0, the release notes should live on v0.50.0:
220
+
As with the release candidate, Circle CI will automatically run the tests and publish to npm with the version you have specified (e.g `0.50.0`).
221
+
222
+
Go to [Circle CI](https://circleci.com/gh/facebook/react-native) and look for the build triggered by your push (e.g. _0.50-stable, [0.50.0] Bump version numbers_), then scroll down to the npm publish step to verify the package was published successfully (the build will be red if not).
223
+
224
+
This will now become the latest release, and will be installed by users by default. At this point, the website will be updated and the docs for this release will be displayed by default.
225
+
226
+
### Step 5: Update the release notes
227
+
228
+
Once you see that the website is displaying the version that you have just created, you will need to update the release notes. Move the release notes from the release candidate, to the tag that you've just created. We want single release notes per version. For example, if there is v0.50.0-rc and later we release v0.50.0, the release notes should live on v0.50.0:
165
229
https://github.com/facebook/react-native/tags
166
230
167
231
For non-RC releases: Uncheck the box "This is a pre-release" and publish the notes.
168
232
169
-
#### Tweet about it
233
+
### Supporting the release
234
+
235
+
Sometimes things don't go well and a major issue is missed during the release candidate phase. If a fix cannot wait until the next release is cut, it may be necessary to cherry-pick it into the current stable release. Go back to your `[0.XX-RC] Commits to cherry-pick` issue and rename it to `[0.XX] Commits to cherry-pick`, then add a comment stating that any cherry-pick requests from then on will be applied to the stable release.
170
236
171
-
Tweet about it! :) ([example tweet](https://twitter.com/grabbou/status/701510554758856704))
237
+
**The same guidelines for RC cherry-picks apply here. If anything, the bar for cherry-picking into a stable release is higher.** Stick to commits that fix blocking issues. Examples may be RedBoxes on newly generated projects, broken upgrade flows with no workaround, or bugs affecting the compiling and/or building of projects.
0 commit comments