Update version in both files:
# Edit Cargo.toml - update workspace.package.version
# Edit crates/monty-js/package.json - update version
# Update Cargo.lock
make lint-rsBoth Cargo.toml and package.json should have the same version (e.g., 0.0.2).
git add Cargo.toml Cargo.lock crates/monty-js/package.json
git commit -m "Bump version to X.Y.Z"
git push- Go to https://github.com/pydantic/monty/releases/new
- Click "Choose a tag" and type the new tag name (e.g.,
v0.0.2) - Select "Create new tag on publish"
- Set the release title (e.g.,
v0.0.2) - Add release notes
- Click "Publish release"
Once the tag is pushed, CI will:
- Build wheels for all platforms
- Publish to PyPI (
pydantic-monty) - Publish to NPM (
@pydantic/monty)
Monitor the workflow at https://github.com/pydantic/monty/actions
For pre-releases (alpha, beta, rc), use a tag like v0.0.2-beta.1:
- PyPI: Published normally
- NPM: Published with
--tag next(notlatest)