|
| 1 | +# lnc-rn Release Process |
| 2 | + |
| 3 | +This document describes the steps needed to release a new version of |
| 4 | +`@lightninglabs/lnc-rn` and publish the package to the NPM registry. |
| 5 | + |
| 6 | +We typically release a new version of `lnc-rn` whenever a new version of |
| 7 | +`lnc-core` has been released. We want to keep the version numbers in sync |
| 8 | +for both packages. |
| 9 | + |
| 10 | +The steps below to should be done in a PR with proper review. |
| 11 | + |
| 12 | +## Update lnc-core version |
| 13 | + |
| 14 | +Run the following command in the root dir of the project to update to the |
| 15 | +latest version of `@lightninglabs/lnc-core`. |
| 16 | + |
| 17 | +```sh |
| 18 | +$ yarn upgrade @lightninglabs/lnc-core@latest |
| 19 | +``` |
| 20 | + |
| 21 | +## Versioning |
| 22 | + |
| 23 | +Increment the version number in the |
| 24 | +[package.json](https://github.com/lightninglabs/lnc-rn/blob/main/package.json) |
| 25 | +file to match the latest version of `@lightninglabs/lnc-core`. |
| 26 | + |
| 27 | +## Update fetch-libraries script |
| 28 | + |
| 29 | +In [fetch-libraries.sh](https://github.com/lightninglabs/lnc-rn/blob/main/fetch-libraries.sh), |
| 30 | +update the `VERSION` variable to be the new version number. |
| 31 | + |
| 32 | +## Publishing to NPM |
| 33 | + |
| 34 | +Building and publishing the this package to NPM is handled automatically by |
| 35 | +the [npm.yml](https://github.com/lightninglabs/lnc-rn/blob/main/.github/workflows/npm.yml) |
| 36 | +Github workflow. This is triggered when a new release is created. |
| 37 | + |
| 38 | +## Github Release |
| 39 | + |
| 40 | +[Draft a new release](https://github.com/lightninglabs/lnc-rn/releases/new) |
| 41 | +on Github. Create a new tag and auto-generate the release notes. You do not |
| 42 | +need to include any assets. |
| 43 | + |
| 44 | +Once you publish the release, the build and publish to NPM will complete in |
| 45 | +a few minutes. You can confirm the new version is published by visiting |
| 46 | +https://www.npmjs.com/package/@lightninglabs/lnc-rn |
| 47 | + |
| 48 | +## Post Release |
| 49 | + |
| 50 | +After the release has been published, remember to update the demo apps to use |
| 51 | +the latest version of `@lightninglabs/lnc-rn`. |
0 commit comments