diff --git a/modules/brk-client/package.json b/modules/brk-client/package.json index 9ae66d295..bd6206cba 100644 --- a/modules/brk-client/package.json +++ b/modules/brk-client/package.json @@ -34,5 +34,5 @@ "url": "git+https://github.com/bitcoinresearchkit/brk.git" }, "type": "module", - "version": "0.1.0-alpha.2" + "version": "0.1.0-alpha.3" } diff --git a/packages/brk_client/pyproject.toml b/packages/brk_client/pyproject.toml index 4dbb17ff2..45cb0aa7c 100644 --- a/packages/brk_client/pyproject.toml +++ b/packages/brk_client/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "brk-client" -version = "0.1.0-alpha.2" +version = "0.1.0-alpha.3" description = "Python client for the Bitcoin Research Kit" readme = "README.md" requires-python = ">=3.11" diff --git a/scripts/js-publish.sh b/scripts/js-publish.sh index 071909fa1..32bba92bc 100755 --- a/scripts/js-publish.sh +++ b/scripts/js-publish.sh @@ -16,4 +16,15 @@ cd "$ROOT_DIR/modules/brk-client" sed -i '' 's/"version": "[^"]*"/"version": "'"$VERSION"'"/' package.json echo "Updated package.json to $VERSION" -npm publish --access public +# Determine npm tag based on version +if [[ "$VERSION" == *"-alpha"* ]]; then + NPM_TAG="alpha" +elif [[ "$VERSION" == *"-beta"* ]]; then + NPM_TAG="beta" +elif [[ "$VERSION" == *"-rc"* ]]; then + NPM_TAG="rc" +else + NPM_TAG="latest" +fi + +npm publish --access public --tag "$NPM_TAG" diff --git a/scripts/python-publish.sh b/scripts/python-publish.sh index 9d0ac8f72..e639e0c07 100755 --- a/scripts/python-publish.sh +++ b/scripts/python-publish.sh @@ -16,5 +16,8 @@ cd "$ROOT_DIR/packages/brk_client" sed -i '' 's/^version = "[^"]*"/version = "'"$VERSION"'"/' pyproject.toml echo "Updated pyproject.toml to $VERSION" +# Clean old build artifacts +rm -rf dist + uv build uv publish diff --git a/scripts/rust-publish.sh b/scripts/rust-publish.sh index 02fdba40b..23e4e350e 100755 --- a/scripts/rust-publish.sh +++ b/scripts/rust-publish.sh @@ -23,6 +23,7 @@ CRATES=( brk_bindgen brk_mcp brk_server + brk_client brk brk_cli )