-
Install dependencies:
npm install
-
Build all the sub-packages:
npm run build --workspaces --if-present
-
Run all the tests:
npm run test --workspaces --if-present
The version of the cogment protobuf API is defined in the ./packages/@cogment/cogment-js-sdk/config.json
file at the root of the repository. It should be defined as a URL pointing to a .tar.gz
archive of the cogment api, e.g. https://github.com/cogment/cogment/releases/download/v2.3.0/cogment-api.tar.gz
.
To use a local version of the API copy the files in ./packages/@cogment/cogment-js-sdk/cogment/api
and run npm run build:protos:compile && npm run build:webpack && npm run build:tsc
instead of the default npm run build
.
People having maintainers rights of the repository can follow these steps to release a version MAJOR.MINOR.PATCH. The versioning scheme follows Semantic Versioning.
- Run
./scripts/create_release_branch.sh MAJOR.MINOR.PATCH
automatically compute and update the version of the package, create the release branch and update the changelog from the commit history, - On the release branch, check and update the changelog if needed, update internal dependencies, and make sure everything's fine on CI,
- Run
./scripts/tag_release.sh MAJOR.MINOR.PATCH
to create the specific version section in the changelog, merge the release branch inmain
, create the release tag and update thedevelop
branch with those.
The rest, publishing the packages to dockerhub and updating the mirror repositories, is handled directly by the CI.