This document outlines the process for creating a new release for Directory packages.
All code block examples provided below correspond to an update to version v1.0.0, please update accordingly.
Prepare a new release for the desired version by running the following command:
task release:create RELEASE_VERSION=v1.0.0Note
For SDK release candidates, versions like 1.0.0-rc.1 becomes 1.0.0-rc.1 in JavaScript package.json
and 1.0.0rc1 in Python pyproject.toml.
- After the pull request is approved and merged, update your local main branch.
git checkout main
git pull origin main- To trigger the release workflow, create and push to the repository a release tag for the last commit.
git tag -a v1.0.0
git push origin v1.0.0Please note that the release tag is not necessarily associated with the "release: prepare version v1.0.0" commit. For example, if any bug fixes were required after this commit, they can be merged and included in the release.
SDK packages (JavaScript and Python) are not automatically published during the release workflow. Before publishing the GitHub release, you must manually trigger the SDK release workflow.
-
Navigate to Actions > Release SDK
-
Click Run workflow
-
In the Use workflow from dropdown, select the release tag (e.g.,
v1.0.0) -
Select the options:
- Make a javascript SDK release: Check to publish to npm
- Make a python SDK release: Check to publish to PyPI
-
Click Run workflow to start the release
-
Wait until the release workflow is completed successfully.
-
Navigate to the Releases page and verify the draft release description as well as the assets listed.
-
Once the draft release has been verified, click on
Editrelease and then onPublish Release.