- Update CHANGELOG.md with changes per Keep a Changelog format.
- Run
pnpm run buildto ensure the build is successful. - Run
pnpm run lint & pnpm run formatto ensure code quality. - Run
pnpm run check-exportsto verify type exports are correct.
-
Create a new changeset:
pnpm changeset
- Select the type of change (major/minor/patch)
- Provide a description of the changes
-
Version the package:
pnpm changeset version
This will:
- Update the version in package.json
- Update the CHANGELOG.md
- Remove the used changeset files
-
Publish to npm:
pnpm publish
Note: The
prepublishOnlyscript will automatically run the build and check-exports before publishing.
-
Push the changes to GitHub:
git push git push --tags
-
Create a new release on GitHub:
- Go to the releases page
- Click "Draft a new release"
- Select the new tag
- Copy the relevant changelog entries
- Publish the release
-
Test the new version in a fresh project:
pnpm add react-native-passkeys@latest
-
Verify the example app works with the new version:
cd example pnpm install pnpm run ios # or android