@dr-yaml/adapter-gha
v0.0.2
Published
GitHub Actions adapter — parse + emit between GHA YAML and @dr-yaml/ir.
Maintainers
Readme
@dr-yaml/adapter-gha
GitHub Actions adapter for the
dr-yaml toolchain. Parses GHA
YAML into @dr-yaml/ir and emits IR back to GHA YAML
deterministically (round-trip stable modulo source positions).
Install
npm install @dr-yaml/adapter-gha @dr-yaml/irUsage
import { parse, emit, capabilities } from "@dr-yaml/adapter-gha";
const { ok, pipeline, errors } = parse(yamlString);
const { yaml, lossReport } = emit(pipeline);Parser preserves source positions on every Job and Step for accurate
lint + error reporting. Emitter records a LossEntry rather than
silently dropping any concept the target can't represent.
License
MIT.
