The release process of new minor version consists of the following steps:
- Update version tags in
packages/react-native-executorch/src/constants/modelUrls.tsto point to the properMINORversion and update tags on 🤗 huggingface. - Make sure unreleased models with tags
NEXT_VERSION_TAGare updated toVERSION_TAG. - Update version in
packages/react-native-executorch/src/constants/versions.ts. - Commit with a message 'Release v{MAJOR}.{MINOR}.0'.
- Create a new release branch
release/{MAJOR}.{MINOR}and push it to the remote. - Stability tests are performed on the release branch and all fixes to the new-found issues are pushed into the main branch and cherry-picked into the release branch. This allows for further development on the main branch without interfering with the release process.
- Once all tests are passed, tag the release branch with proper version tag
v{MAJOR}.{MINOR}.0and run the following publish workflows: - Create the release notes on GitHub.
- Bump version in
package.jsonon themainbranch tov{MAJOR}.{NEXT_MINOR}.0for the core package and both adapter packages (bare-resource-fetcher,expo-resource-fetcher). Commit with a message 'Bump version to v{MAJOR}.{NEXT_MINOR}.0'. - Create versioned docs by running from repo root
(cd docs && yarn docs:version {MAJOR}.{MINOR}.x)(the 'x' part is intentional and is not to be substituted). Also, make sure that all the links inapi-referenceare not broken. - Create a PR with the updated docs.
- Update README.md with release video, if available.
- Update README.md links to release branch.
After the release branch is created and the version is published to npm we only allow for bug fixes and other critical changes to be included into the release branch. For this purpose we use git cherry-pick command.
Caution
Those changes should NOT include documentation changes, as they would be released automatically on the PR's merge and before the code changes are live. Instead create a separate PR with doc changes according to the Docs update section.
- Create a PR with the fix to the
mainbranch. - Once the PR is merged, create a new branch off
release/{MAJOR}.{MINOR}, cherry-pick the relevant commits frommain, and open a PR targetingrelease/{MAJOR}.{MINOR}. - Once the PR is merged, bump version in
package.jsonof the core package and any adapter packages that require a fix to the new versionv{MAJOR}.{MINOR}.{REVISION}. Commit with a message 'Release v{MAJOR}.{MINOR}.{REVISION}'. - Tag release branch with proper version tag
v{MAJOR}.{MINOR}.{REVISION}and run the relevant publish workflows:- npm publish (core)
- npm publish bare-resource-fetcher (if applicable)
- npm publish expo-resource-fetcher (if applicable)
- Create release notes on GitHub.
We are using docusaurus with docs versioning. By default when merging PRs with docs changes to the main branch, a GitHub workflow is started to publish the docs. For this reason those changes should be merged only once the related changes are released. When updating docs the following steps should be considered.
- Update the desired doc pages.
- Check if the changes are applicable to past versions, if so make the same updates to the correct files in versioned docs inside
react-native-executorch/docs/versioned_docs/version-{MAJOR}.{MINOR}.x. - Create a PR to the main branch.