fix(ci): use absolute path for stage_dir to survive cd into core
The `cd "$core_dir"` for npm install changed cwd, so the trailing `du -sh "$stage_dir"` (with stage_dir as relative path) failed: du: cannot access 'dist/u-claw-portable-windows-v2.1.3' Fix: prefix stage_dir with $(pwd) so it's absolute. Surfaced by v2.1.3 release run that successfully npm-installed all 764 packages in 70s but exited 1 on the cosmetic du line.
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -34,7 +34,8 @@ jobs:
|
|||||||
- name: Pre-install Node.js (Windows) and OpenClaw deps
|
- name: Pre-install Node.js (Windows) and OpenClaw deps
|
||||||
run: |
|
run: |
|
||||||
tag_name="${GITHUB_REF_NAME:-${{ github.event.inputs.tag }}}"
|
tag_name="${GITHUB_REF_NAME:-${{ github.event.inputs.tag }}}"
|
||||||
stage_dir="dist/u-claw-portable-windows-${tag_name}"
|
# Absolute paths so `cd "$core_dir"` later doesn't break `du`/`find`
|
||||||
|
stage_dir="$(pwd)/dist/u-claw-portable-windows-${tag_name}"
|
||||||
openclaw_version=$(tr -d '[:space:]' < OPENCLAW_VERSION)
|
openclaw_version=$(tr -d '[:space:]' < OPENCLAW_VERSION)
|
||||||
node_version="v22.22.1"
|
node_version="v22.22.1"
|
||||||
mirror_node="https://npmmirror.com/mirrors/node"
|
mirror_node="https://npmmirror.com/mirrors/node"
|
||||||
|
|||||||
Reference in New Issue
Block a user