ci(release): bound cross-os baseline packing

This commit is contained in:
Peter Steinberger
2026-05-29 01:13:10 +01:00
parent fc8b57e0cf
commit 592277cd77
2 changed files with 7 additions and 1 deletions

View File

@@ -451,7 +451,7 @@ jobs:
OUTPUT_DIR: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/baseline
run: |
mkdir -p "${OUTPUT_DIR}"
npm pack --ignore-scripts --json "${BASELINE_SPEC}" --pack-destination "${OUTPUT_DIR}" > "${OUTPUT_DIR}/pack.json"
timeout --preserve-status 300s npm pack --ignore-scripts --json "${BASELINE_SPEC}" --pack-destination "${OUTPUT_DIR}" > "${OUTPUT_DIR}/pack.json"
- name: Capture candidate metadata
id: candidate_metadata

View File

@@ -15,6 +15,12 @@ describe("cross-OS release checks workflow", () => {
expect(workflow).not.toContain('pnpm dlx "tsx@${TSX_VERSION}"');
});
it("bounds npm baseline packing during prepare", () => {
const workflow = readFileSync(WORKFLOW_PATH, "utf8");
expect(workflow).toContain("timeout --preserve-status 300s npm pack --ignore-scripts");
});
it("uses Windows-safe npm resolution for the TypeScript loader bootstrap", () => {
const wrapper = readFileSync(WRAPPER_PATH, "utf8");