fix: install.sh always fetches latest git deps before build
/ smoke (push) Successful in 6s Details
register-skill-release / register (push) Successful in 14s Details

rm -rf node_modules/@clawd before npm install ensures auth-runtime
is always at the latest remote version, not cached.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ywkj 2026-03-20 06:56:29 +08:00
parent 850bc75046
commit 2e23d74701
2 changed files with 5 additions and 2 deletions

View File

@ -13,8 +13,11 @@ DEST="${1:-$HOME/.openclaw/skills}"
cd "$(dirname "$0")"
# Always fetch latest git dependencies
rm -rf node_modules/@clawd
npm install
echo "Building $SKILL_NAME..."
bun install --frozen-lockfile
bun build scripts/run.ts --outfile dist/run.js --target bun
mkdir -p "$DEST/$SKILL_NAME"

View File

@ -8,6 +8,6 @@
"package": "bun run build && cd .. && zip -r 1688-product-master.skill 1688-product-master/SKILL.md 1688-product-master/dist/run.js && echo 'Created: 1688-product-master.skill'"
},
"dependencies": {
"@clawd/auth-runtime": "git+http://192.168.0.108:3030/agent-skills/auth-runtime.git#v1.1.0"
"@clawd/auth-runtime": "git+http://192.168.0.108:3030/agent-skills/auth-runtime.git"
}
}