- Git
- NodeJS 20+
- Yarn
- go 1.22.1
- Mage
- Docker
- Clone the repo locally
git clone https://github.com/grafana/infinity-libs infinity-libs
andcd infinity-libs
- Install packages
yarn
- Run the backend tests with
yarn test
To create a new version of a package for release, follow these steps:
- Check out the commit you want to tag by running:
git checkout <COMMIT_SHA>
.- Note: Ensure that this commit includes the updated version in the
package.json
of the package you wish to release.
- Note: Ensure that this commit includes the updated version in the
- Tag the commit with:
git tag lib/go/<PACKAGE_NAME>/<VERSION>
(e.g., lib/go/jsonframer/v1.1.1).- Note: We are using lightweight tags, so no additional options are necessary.
- Push the tag to the remote repository with:
git push origin lib/go/<PACKAGE_NAME>/<VERSION>
. - Verify that the tag was created successfully here.