@datadog/sketches-js
utilizes GitHub's Actions and Releases features to coordinate releases. You can follow these steps to prepare a new release.
- Make commits containing changes you wish to release on a dedicated branch
- Create a pull request with your changes
- This will trigger the
ci.yml
GitHub action to run tests and typechecking for your branch
- This will trigger the
- Once your pull request has been approved and the CI action has passed, merge your changes into the main branch
- When you're ready to make a new release, checkout the main branch locally and run
yarn version
- Choose the new version number following SemVer. Make sure you prefix it with
v
(vX.Y.Z
).- This command creates a new commit that only updates the version in
package.json
- This command creates a new commit that only updates the version in
- Open and merge a pull request containing this commit on a new branch
- In GitHub's UI, navigate to Releases > "Draft New Release". Set the tag version to the version you just entered, and add a title and description for the new release
- Hit "Publish Release". This will trigger the
publish.yml
GitHub action, which builds a new version of the package, and publishes it to NPM