mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
feat: The version synchronization and skills generation are executed in the pre-commit hook
This commit is contained in:
@@ -25,16 +25,9 @@ jobs:
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- run: pnpm -r --filter "./packages/*" build
|
||||
- run: pnpm run sync:skill-assets
|
||||
|
||||
- name: Verify generated skill assets are committed
|
||||
run: |
|
||||
if ! git diff --exit-code -- skills/bailian-cli/SKILL.md skills/bailian-cli/reference/; then
|
||||
echo "::error::skills/bailian-cli/SKILL.md or reference/ differs from build output."
|
||||
echo "Run: pnpm --filter bailian-cli run build"
|
||||
echo "Then commit the updated files."
|
||||
exit 1
|
||||
fi
|
||||
- run: pnpm -r --filter "./packages/*" build
|
||||
|
||||
- run: pnpm run check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user