fix(release): stabilize full validation lanes

This commit is contained in:
Peter Steinberger
2026-04-27 07:46:07 +01:00
parent ddcd9d62c4
commit 8811112ab3
7 changed files with 125 additions and 3 deletions

View File

@@ -227,6 +227,25 @@ openclaw_package_dir="/npm-global/lib/node_modules/openclaw"
# point those imports at the installed package without copying source into the test image.
rm -rf /app/node_modules/openclaw
ln -sfnT "$openclaw_package_dir" /app/node_modules/openclaw
rm -rf /app/dist
ln -sfnT "$openclaw_package_dir/dist" /app/dist
cp "$openclaw_package_dir/package.json" /app/package.json
node --input-type=module <<'NODE'
import fs from "node:fs";
const packageJsonPath = "/app/package.json";
const pkg = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
pkg.exports = pkg.exports && typeof pkg.exports === "object" ? pkg.exports : {};
pkg.exports["./plugin-sdk/qa-channel"] = {
types: "./extensions/qa-channel/api.ts",
default: "./extensions/qa-channel/api.ts",
};
pkg.exports["./plugin-sdk/qa-channel-protocol"] = {
types: "./extensions/qa-channel/src/protocol.ts",
default: "./extensions/qa-channel/src/protocol.ts",
};
fs.writeFileSync(packageJsonPath, `${JSON.stringify(pkg, null, 2)}\n`);
NODE
for deps_dir in "$openclaw_package_dir/node_modules" /npm-global/lib/node_modules; do
[ -d "$deps_dir" ] || continue
for dependency_dir in "$deps_dir"/*; do