mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 03:51:38 +00:00
fix(ci): package runtime resources in dist artifact
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export const WORKSPACE_TEMPLATE_PACK_PATHS: readonly string[];
|
||||
export const DIST_RUNTIME_ARTIFACT_BASE_PATHS: readonly string[];
|
||||
export function createWorkspaceBootstrapSmokeEnv(
|
||||
env: NodeJS.ProcessEnv,
|
||||
homeDir: string,
|
||||
@@ -10,7 +9,6 @@ export function runInstalledWorkspaceBootstrapSmoke(params: {
|
||||
nodeArgs?: string[];
|
||||
envOverrides?: NodeJS.ProcessEnv;
|
||||
}): void;
|
||||
export function collectDistRuntimeArtifactPaths(rootDir: string): string[];
|
||||
export function buildAndSmokeDistRuntimeArtifact(params: {
|
||||
rootDir: string;
|
||||
archivePath: string;
|
||||
|
||||
@@ -18,7 +18,7 @@ export const WORKSPACE_TEMPLATE_PACK_PATHS = [
|
||||
"docs/reference/templates/BOOTSTRAP.md",
|
||||
];
|
||||
|
||||
export const DIST_RUNTIME_ARTIFACT_BASE_PATHS = [
|
||||
const DIST_RUNTIME_ARTIFACT_BASE_PATHS = [
|
||||
"openclaw.mjs",
|
||||
"package.json",
|
||||
"docs/reference/templates",
|
||||
@@ -231,7 +231,7 @@ export function runInstalledWorkspaceBootstrapSmoke(params) {
|
||||
}
|
||||
}
|
||||
|
||||
export function collectDistRuntimeArtifactPaths(rootDir) {
|
||||
function collectDistRuntimeArtifactPaths(rootDir) {
|
||||
const missingPaths = DIST_RUNTIME_ARTIFACT_PACKAGE_SOURCE_PATHS.filter(
|
||||
(artifactPath) => !existsSync(join(rootDir, artifactPath)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user