This document describes the steps needed to release a new version of
@lightninglabs/lnc-rn
and publish the package to the NPM registry.
We typically release a new version of lnc-rn
whenever a new version of
lnc-core
has been released. We want to keep the version numbers in sync
for both packages.
The steps below to should be done in a PR with proper review.
Run the following command in the root dir of the project to update to the
latest version of @lightninglabs/lnc-core
.
$ yarn upgrade @lightninglabs/lnc-core@latest
Increment the version number in the
package.json
file to match the latest version of @lightninglabs/lnc-core
.
In fetch-libraries.sh,
update the VERSION
variable to be the new version number.
Building and publishing the this package to NPM is handled automatically by the npm.yml Github workflow. This is triggered when a new release is created.
Draft a new release on Github. Create a new tag and auto-generate the release notes. You do not need to include any assets.
Once you publish the release, the build and publish to NPM will complete in a few minutes. You can confirm the new version is published by visiting https://www.npmjs.com/package/@lightninglabs/lnc-rn
After the release has been published, remember to update the demo apps to use
the latest version of @lightninglabs/lnc-rn
.