ci: fix update channel package version probe · openclaw/openclaw@edf43df
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -130,7 +130,7 @@ fixture_sha="$(git -C "$git_root" rev-parse HEAD)"
|
130 | 130 | pkg_tgz_path="$package_tgz" |
131 | 131 | |
132 | 132 | npm install -g --prefix /tmp/npm-prefix --omit=optional "$pkg_tgz_path" |
133 | | -package_version="$(node -p "require('/tmp/npm-prefix/lib/node_modules/openclaw/package.json').version")" |
| 133 | +package_version="$(node -p "JSON.parse(require(\"node:fs\").readFileSync(\"/tmp/npm-prefix/lib/node_modules/openclaw/package.json\", \"utf8\")).version")" |
134 | 134 | OPENCLAW_PACKAGE_ACCEPTANCE_LEGACY_COMPAT="$( |
135 | 135 | node - "$package_version" <<"NODE" |
136 | 136 | const version = process.argv[2] || ""; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。