Welcome to the Aleph Indexer Framework monorepo! We appreciate your interest in contributing to our open-source project. This guide will walk you through the process of releasing new versions using lerna version, adding a Git tag, and pushing it to your branch (and merging the branch into a pull request if it's not the main branch).
Before you can release new versions, please ensure that you have the following prerequisites:
- Node.js installed on your machine.
- Lerna installed globally. You can install it by running
npm install -g lerna
.
To release a new version of the monorepo, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/aleph-im/aleph-indexer-framework.git
- Change into the project's directory:
cd aleph-indexer-framework
- Install the dependencies:
npm install
- Make any necessary changes or updates to the codebase.
- Use
lerna version
command to create a new version for the packages in the monorepo. Lerna will guide you through the versioning process:
lerna version
- Lerna will prompt you to select the new version number. Choose the appropriate version according to semantic versioning principles.
- Lerna will automatically update the version numbers in the
package.json
files of the affected packages, create a new Git commit, and tag the commit with the chosen version number.
Once you have created the new version with lerna version, you need to push the Git tag to your branch. Follow these steps:
- Push the Git tags to your branch:
git push --tags
- Push the updated commit to your branch:
git push
If you are working on a branch other than the main branch and need to merge your changes into a pull request, follow these steps:
- Create a pull request from your branch to the main branch.
- Ensure that your pull request has been reviewed and approved.
- Once approved, merge the pull request into the main branch.
- After the pull request is merged, the updated code and new version will be available in the main branch.
Thank you for contributing to the Aleph Indexer Framework! We appreciate your efforts and look forward to your continued support. Happy coding!