mirror of https://github.com/openclaw/openclaw.git
fix: normalize local npm publish tarball paths
This commit is contained in:
parent
b6ba45c4a4
commit
b569f5d313
|
|
@ -10,6 +10,13 @@ if [[ "${mode}" != "--publish" ]]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
if [[ -n "${publish_target}" && -f "${publish_target}" ]]; then
|
||||
case "${publish_target}" in
|
||||
/*|./*|../*) ;;
|
||||
*) publish_target="./${publish_target}" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
package_version="$(node -p "require('./package.json').version")"
|
||||
current_beta_version="$(npm view openclaw dist-tags.beta 2>/dev/null || true)"
|
||||
mapfile -t publish_plan < <(
|
||||
|
|
|
|||
Loading…
Reference in New Issue