fix(ci): add GitHub Actions release workflows and fix visual test

- Add release.yml for manual npm publishing on GitHub Release
- Add release-canary.yml for automated canary releases (every 20 commits)
- Fix visual test template path (use homedir() instead of ~)
- Update visual test baselines
- Add sync-version.mjs script for version synchronization
- Add sync-version npm script to package.json
This commit is contained in:
catlog22
2026-02-27 19:06:34 +08:00
parent 47fe0d3bec
commit 61f929005c
15 changed files with 344 additions and 2 deletions

View File

@@ -12,6 +12,7 @@
"ccw/frontend"
],
"scripts": {
"sync-version": "node scripts/sync-version.mjs",
"build": "tsc -p ccw/tsconfig.json",
"postbuild": "node -e \"const fs=require('fs');['ccw/bin/ccw.js','ccw/bin/ccw-mcp.js'].forEach(f=>{try{fs.chmodSync(f,0o755)}catch{}})\"",
"start": "node ccw/bin/ccw.js",