- Commit your changes.
- Reinstall all dependencies
git clean -xfd && npm install
.- If there are any vulnerabilities fix them with
npm audit fix
. - Make sure
package-lock.json
andyarn.lock
files are updated.
- If there are any vulnerabilities fix them with
- Check for all type and documentation errors by running
npm run lint
. - Run local tests via
npm test
. - Bump version in
package.json
file. - Add release latest release notes to
README.md
file. Append them toCHANGELOG.md
as well. - Generate new documentation via
npm run docs
and skip CSS changes. - Send PR and wait for CI/CD to pass all tests successfully.
- Merge your changes to
master
branch.
- You can test pre-release changes in your chosen application by installing the library as
"react-native-ble-plx": "Polidea/react-native-ble-plx"
. - Clean repository and publish new version:
git clean -xfd && npm publish
. - Add tag to the repository in form of
x.x.x
. - Add release notes to the Github by copying a list of changes from
CHANGELOG.md
. - Check any issues which are fixed by a new version, close them and point to a new release in the comment section.