@@ -811,6 +811,65 @@ jobs:
811811 }
812812 node scripts/check-openclaw-package-tarball.mjs "$package"
813813
814+ npm_12_install_sh :
815+ name : npm 12 install.sh acceptance
816+ needs : [resolve_package, package_integrity]
817+ runs-on : ubuntu-24.04
818+ timeout-minutes : 15
819+ permissions :
820+ actions : read
821+ contents : read
822+ steps :
823+ - name : Checkout package workflow ref
824+ uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
825+ with :
826+ ref : ${{ inputs.workflow_ref }}
827+ fetch-depth : 1
828+ persist-credentials : false
829+
830+ - name : Setup Node 24
831+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
832+ with :
833+ node-version : 24
834+
835+ - name : Download package-under-test artifact
836+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
837+ with :
838+ artifact-ids : ${{ needs.resolve_package.outputs.package_artifact_id }}
839+ path : .artifacts/docker-e2e-package
840+ run-id : ${{ needs.resolve_package.outputs.package_artifact_run_id }}
841+ github-token : ${{ github.token }}
842+
843+ - name : Run install.sh with npm 12
844+ env :
845+ EXPECTED_PACKAGE_SHA256 : ${{ needs.resolve_package.outputs.package_sha256 }}
846+ EXPECTED_PACKAGE_VERSION : ${{ needs.resolve_package.outputs.package_version }}
847+ shell : bash
848+ run : |
849+ set -euo pipefail
850+ package="$PWD/.artifacts/docker-e2e-package/openclaw-current.tgz"
851+ [[ "$(sha256sum "$package" | awk '{print $1}')" == "$EXPECTED_PACKAGE_SHA256" ]]
852+ npm_tool="$RUNNER_TEMP/openclaw-npm12-tool"
853+ install_home="$RUNNER_TEMP/openclaw-npm12-home"
854+ install_prefix="$RUNNER_TEMP/openclaw-npm12-prefix"
855+ mkdir -p "$install_home" "$install_prefix"
856+ npm install -g --prefix "$npm_tool" [email protected] 857+ export PATH="$npm_tool/bin:$install_prefix/bin:$PATH"
858+ [[ "$(npm --version)" == "12.0.2" ]]
859+ HOME="$install_home" \
860+ NPM_CONFIG_CACHE="$RUNNER_TEMP/openclaw-npm12-cache" \
861+ NPM_CONFIG_PREFIX="$install_prefix" \
862+ OPENCLAW_VERSION="$package" \
863+ bash scripts/install.sh --install-method npm --no-prompt --no-onboard
864+ source scripts/docker/install-sh-common/version-parse.sh
865+ installed_version="$(extract_openclaw_semver "$("$install_prefix/bin/openclaw" --version)")"
866+ [[ "$installed_version" == "$EXPECTED_PACKAGE_VERSION" ]] || {
867+ echo "Installed OpenClaw version $installed_version differs from expected $EXPECTED_PACKAGE_VERSION." >&2
868+ exit 1
869+ }
870+ guard="$install_prefix/lib/node_modules/openclaw/dist/openclaw-install-guard"
871+ [[ ! -e "$guard" ]]
872+
814873 docker_acceptance :
815874 name : Docker product acceptance (artifact-only)
816875 needs : [resolve_package, package_integrity]
@@ -951,6 +1010,7 @@ jobs:
9511010 [
9521011 resolve_package,
9531012 package_integrity,
1013+ npm_12_install_sh,
9541014 docker_acceptance,
9551015 docker_acceptance_registry,
9561016 package_telegram,
@@ -965,6 +1025,7 @@ jobs:
9651025 DOCKER_ARTIFACT_RESULT : ${{ needs.docker_acceptance.result }}
9661026 DOCKER_REGISTRY_RESULT : ${{ needs.docker_acceptance_registry.result }}
9671027 PACKAGE_INTEGRITY_RESULT : ${{ needs.package_integrity.result }}
1028+ NPM_12_INSTALL_RESULT : ${{ needs.npm_12_install_sh.result }}
9681029 PACKAGE_TELEGRAM_RESULT : ${{ needs.package_telegram.result }}
9691030 RESOLVE_RESULT : ${{ needs.resolve_package.result }}
9701031 TELEGRAM_ENABLED : ${{ needs.resolve_package.outputs.telegram_enabled }}
@@ -988,6 +1049,7 @@ jobs:
9881049 for item in \
9891050 "resolve_package=${RESOLVE_RESULT}" \
9901051 "package_integrity=${PACKAGE_INTEGRITY_RESULT}" \
1052+ "npm_12_install_sh=${NPM_12_INSTALL_RESULT}" \
9911053 "docker_acceptance=${docker_result}" \
9921054 "package_telegram=${PACKAGE_TELEGRAM_RESULT}"
9931055 do
0 commit comments