Skip to content

Commit ddb2830

Browse files
authored
chore: update RELEASING.md (#32)
1 parent 3b72612 commit ddb2830

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

RELEASING.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,36 @@ Releasing
1313
3. Go to [GH Releases](https://github.com/PostHog/posthog-react-native-session-replay/releases)
1414
4. Choose a release name (e.g. `3.0.0`), and the tag you just created, ideally the same.
1515
5. Write a description of the release.
16-
6. Publish the release.
17-
7. Done
16+
6. Publish the GH release.
17+
7. Publish the package to NPM (see notes below)
18+
8. Done
1819

19-
For the step 6. you can run the following command:
20+
### Publishing to NPM
2021

21-
```bash
22-
# https://www.npmjs.com/package/posthog-react-native-session-replay
23-
# right now this is under the https://www.npmjs.com/~manoelposthog user
24-
# this has to be moved to the posthog user
25-
npm publish
26-
```
22+
> **Note:** The package is currently published at [posthog-react-native-session-replay](https://www.npmjs.com/package/posthog-react-native-session-replay) under the [manoelposthog](https://www.npmjs.com/~manoelposthog) user. This should eventually be moved to the posthog user.
23+
24+
After completing steps 1-6 above, follow these steps to publish to NPM:
25+
26+
#### Prerequisites
27+
- Ensure you have access to publish to the `posthog-react-native-session-replay` package on NPM
28+
- If you don't have access, contact the package maintainer (currently https://www.npmjs.com/~manoelposthog) to grant your NPM user access to the package
29+
30+
#### Steps
31+
32+
1. **Install dependencies** (if not done already, required for the build process):
33+
```bash
34+
npm install
35+
```
36+
37+
2. **Authenticate with NPM** (if not already authenticated):
38+
```bash
39+
npm adduser
40+
```
41+
Follow the prompts to log in with your NPM credentials.
42+
43+
3. **Publish the package**:
44+
```bash
45+
npm publish
46+
```
47+
48+
The `npm publish` command will automatically run the `prepare` script which builds the package using `react-native-builder-bob` before publishing.

0 commit comments

Comments
 (0)