bridge icon indicating copy to clipboard operation
bridge copied to clipboard

fix(scaffold): cron workflow shouldn't 'npm install && npm run build' in consumer repo

Open noemuch opened this issue 7 months ago • 0 comments

Problem

The scaffolded GitHub Actions workflow (.github/workflows/bridge-docs-cron.yml) ships with:

```yaml

  • run: npm install --no-audit --no-fund
  • run: npm run build
  • run: node dist/lib/cron/orchestrator.js --config docs.config.yaml ```

This assumes the consumer repo contains Bridge's TypeScript sources. It doesn't — it just consumes the npm package. The cron run fails immediately on npm run build (no script defined / no sources to build).

Found in

Spectra repo, fresh setup bridge with v5.1.0 (2026-04-16). Workaround applied by Claude inline:

```yaml

Fix

Update the cron workflow template at the source so every new scaffold ships the npx invocation. Pin the version to whatever ships in package.json at scaffold time.

Likely files: cron template / orchestrator scaffolder. Find with grep -r "npm install" lib/cli lib/cron.

Acceptance

  • New setup bridge produces a workflow that runs end-to-end on a fresh repo with no Bridge sources
  • Cron pins exact Bridge version (no surprise upgrades)

noemuch avatar Apr 16 '26 15:04 noemuch