콘텐츠로 이동

Releasing

이 콘텐츠는 아직 번역되지 않았습니다.

Update the version in cli/Cargo.toml, then push a git tag with the matching version:

Terminal window
git tag v0.1.0
git push origin v0.1.0

.github/workflows/release.yml builds the release binary for five targets (aarch64-apple-darwin, x86_64-apple-darwin, x86_64-unknown-linux-musl, aarch64-unknown-linux-musl, x86_64-pc-windows-msvc), attaches xds-<target>.tar.gz and its .sha256 checksum to a GitHub release, and publishes the npm packages. Publishing requires an NPM_TOKEN repository secret.

To build the npm packages locally without publishing:

Terminal window
mise run build:cli
mkdir -p /tmp/xds-binaries/aarch64-apple-darwin
cp target/dist/xds /tmp/xds-binaries/aarch64-apple-darwin/
node npm/build-packages.mjs --binaries /tmp/xds-binaries # writes npm/dist

The script builds a platform package for each Rust target binary it finds and stamps the version from cli/Cargo.toml onto every package.