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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,31 @@ When you're sending a pull request:
111
111
- Preview the documentation to make sure it looks good.
112
112
- Follow the pull request template when opening a pull request.
113
113
114
+
## Publishing workflow
115
+
116
+
This part is for maintainers only, documenting steps to manually publish the packages with Lerna. Make sure you have publish access to the `@react-native-community/cli` and related packages.
117
+
118
+
### Stable version
119
+
120
+
1. Pull latest changes for the stable branch (we use a _N.x_ convention where _N_ stands for major version of the RNC CLI).
121
+
1. Run `yarn run publish`, it will tag the packages as `latest`.
122
+
1. Chose an appropriate version from the available options.
123
+
1. Create release notes in the project's Release tab.
124
+
125
+
### Prerelease
126
+
127
+
1. Pull latest changes for the `main` branch.
128
+
1. Run `yarn run publish:next`, it will tag the packages as `next`.
129
+
1. Use `Custom prerelease` option and go with `-alpha.N` convention.
130
+
1. Create release notes in the project's Release tab.
131
+
132
+
### Legacy version
133
+
134
+
1. Pull latest changes for the _N.x_ branch (where N stands for major legacy version).
135
+
1. Run `yarn run publish --dist-tag N.x` to tag the packages as `N.x`.
136
+
1. Chose an appropriate version from the available options.
137
+
1. Create release notes in the project's Release tab.
138
+
114
139
## Reporting issues
115
140
116
141
You can report issues on our [bug tracker](https://github.com/react-native-community/react-native-cli/issues). Please follow the issue template when opening an issue.
0 commit comments