ci: approval-gated fast path on Blacksmith runners

Merged
KH
9d ago
+99-0

What

Adds .github/workflows/fast-path.yml, a workflow_dispatch workflow (inputs ref, reason) that runs on Blacksmith runners (blacksmith-4vcpu-ubuntu-2404) so an urgent fix can be checked without waiting in the GitHub-hosted runner queue.

  • Gate: the first job uses the fast-path environment. Khaliq must approve it before anything runs; every other job depends on it. The ref is resolved to a SHA once and later jobs check out that SHA.
  • Checks (mirrors ci.yml): npm ci, npm run typecheck, npm test.
  • Publishes: nothing to npm. publish.yml uses npm trusted publishing (OIDC, no token), which is bound to that workflow file, so the fast path packs the five @relayflows/* packages (built in the same order as publish.yml) with npm pack and uploads the tarballs as the artifact npm-packages-<sha>. No dist-tag is moved and no tag or GitHub release is created.
  • The run summary lists ref, SHA, reason and the tarballs.

Normal CI and publish.yml are unchanged.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Adds an opt-in fast-path workflow for urgent fixes that runs the same checks as CI and produces packed npm tarballs on Blacksmith runners, skipping the GitHub-hosted queue.

  • The workflow is manually triggered with a ref and reason; the first job requires approval of the fast-path environment before anything runs, and all later jobs depend on it.
  • The ref is resolved to a SHA once, and that SHA is checked out by the job that packs the packages.
  • The fast path does not publish to npm: trusted publishing is bound to publish.yml, so it runs npm pack and uploads the tarballs as an artifact instead. No dist-tag or release is created.
  • Normal ci.yml and publish.yml are unchanged.