mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-28 09:23:08 +08:00
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:
@@ -2,7 +2,7 @@ import { after, before, describe, it } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createServer } from 'node:http';
|
||||
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
||||
import { tmpdir } from 'node:os';
|
||||
import { homedir, tmpdir } from 'node:os';
|
||||
import { basename, join, resolve, sep } from 'node:path';
|
||||
|
||||
import { chromium } from 'playwright';
|
||||
@@ -150,7 +150,7 @@ function writePrototypeHtml(filePath: string, target: string, style: number, lay
|
||||
|
||||
describe('ui_generate_preview visual regression', () => {
|
||||
const prototypesDir = mkdtempSync(join(tmpdir(), 'ccw-ui-generate-preview-'));
|
||||
const templatePath = resolve(process.cwd(), '~/.ccw/workflows/_template-compare-matrix.html');
|
||||
const templatePath = resolve(homedir(), '.ccw/workflows/_template-compare-matrix.html');
|
||||
|
||||
let server: StaticServer | undefined;
|
||||
let browser: import('playwright').Browser | undefined;
|
||||
|
||||
Reference in New Issue
Block a user