Skip to content

Commit 7806690

Browse files
authored
docs: document manual publish instructions (#2437)
1 parent 58d23cd commit 7806690

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

CONTRIBUTING.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,31 @@ When you're sending a pull request:
111111
- Preview the documentation to make sure it looks good.
112112
- Follow the pull request template when opening a pull request.
113113

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+
114139
## Reporting issues
115140

116141
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

Comments
 (0)