From b5557fb6dd594ba0447726c2ca53e1fabf44308e Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Wed, 4 Mar 2026 20:06:38 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20silent=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- packages/dench/package.json | 4 ++-- scripts/deploy.sh | 25 +++++++++++++++++-------- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 2fd02c06888..37263263079 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "denchclaw", - "version": "2.0.5", + "version": "2.0.6", "description": "Fully Managed OpenClaw Framework for managing your CRM, Sales Automation and Outreach agents. The only local productivity tool you need.", "keywords": [], "homepage": "https://github.com/DenchHQ/DenchClaw#readme", diff --git a/packages/dench/package.json b/packages/dench/package.json index aacac71ab8f..a263ac3c790 100644 --- a/packages/dench/package.json +++ b/packages/dench/package.json @@ -1,6 +1,6 @@ { "name": "dench", - "version": "2.0.5", + "version": "2.0.6", "description": "Shorthand alias for denchclaw — AI-powered CRM platform CLI", "license": "MIT", "repository": { @@ -16,7 +16,7 @@ ], "type": "module", "dependencies": { - "denchclaw": "^2.0.5" + "denchclaw": "^2.0.6" }, "engines": { "node": ">=22.12.0" diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a5bf55430b1..bda8ec64bda 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -264,6 +264,7 @@ npm publish --access public --tag latest "${NPM_FLAGS[@]}" # ── publish alias package (dench → denchclaw) ──────────────────────────────── +ALIAS_PUBLISHED=false ALIAS_DIR="${ROOT_DIR}/${ALIAS_PACKAGE_DIR}" if [[ -d "$ALIAS_DIR" ]]; then # Pin the alias package version and its denchclaw dependency to this release. @@ -275,7 +276,8 @@ if [[ -d "$ALIAS_DIR" ]]; then fs.writeFileSync('${ALIAS_DIR}/package.json', JSON.stringify(pkg, null, 2) + '\n'); " echo "publishing ${ALIAS_PACKAGE_NAME}@${VERSION}..." - if (cd "$ALIAS_DIR" && npm publish --access public --tag latest "${NPM_FLAGS[@]}"); then + if (cd "$ALIAS_DIR" && npm publish --access public --tag latest "${NPM_FLAGS[@]}" 2>/dev/null); then + ALIAS_PUBLISHED=true echo "published ${ALIAS_PACKAGE_NAME}@${VERSION}" else echo "warning: failed to publish ${ALIAS_PACKAGE_NAME}@${VERSION} (non-fatal)" @@ -288,14 +290,16 @@ if [[ "$SKIP_NPX_SMOKE" != true ]]; then echo "verifying npx binaries..." verify_npx_command "$VERSION" "npx denchclaw" \ npx --yes "${PACKAGE_NAME}@${VERSION}" --version - verify_npx_command "$VERSION" "npx dench (via dench package)" \ - npx --yes "${ALIAS_PACKAGE_NAME}@${VERSION}" --version + if [[ "$ALIAS_PUBLISHED" == true ]]; then + verify_npx_command "$VERSION" "npx dench (via dench package)" \ + npx --yes "${ALIAS_PACKAGE_NAME}@${VERSION}" --version + fi verify_npx_invocation "npx denchclaw update --help" \ - npx --yes "${ALIAS_PACKAGE_NAME}@${VERSION}" update --help + npx --yes "${PACKAGE_NAME}@${VERSION}" update --help verify_npx_invocation "npx denchclaw start --help" \ - npx --yes "${ALIAS_PACKAGE_NAME}@${VERSION}" start --help + npx --yes "${PACKAGE_NAME}@${VERSION}" start --help verify_npx_invocation "npx denchclaw stop --help" \ - npx --yes "${ALIAS_PACKAGE_NAME}@${VERSION}" stop --help + npx --yes "${PACKAGE_NAME}@${VERSION}" stop --help fi # Verify the standalone web app was included in the published package. @@ -308,5 +312,10 @@ if [[ ! -f "$STANDALONE_SERVER" ]]; then fi echo "" -echo "published ${PACKAGE_NAME}@${VERSION} + ${ALIAS_PACKAGE_NAME}@${VERSION}" -echo "install: npm i -g ${PACKAGE_NAME} (or: npm i -g ${ALIAS_PACKAGE_NAME})" +if [[ "$ALIAS_PUBLISHED" == true ]]; then + echo "published ${PACKAGE_NAME}@${VERSION} + ${ALIAS_PACKAGE_NAME}@${VERSION}" + echo "install: npm i -g ${PACKAGE_NAME} (or: npm i -g ${ALIAS_PACKAGE_NAME})" +else + echo "published ${PACKAGE_NAME}@${VERSION}" + echo "install: npm i -g ${PACKAGE_NAME}" +fi