Shared GitHub Actions and reusable workflows for @gingur projects. One monorepo, consumed by @main.
.github/workflows/ reusable workflows — uses: gingur/devkit/.github/workflows/<name>.yml@main
actions/ composite actions — uses: gingur/devkit/actions/<name>@main
configs/ shared tool configs — imported via the exports map
bin/ the `devkit` CLI — the local half of the same contract
Reusable workflows must live directly in
.github/workflows/(GitHub requirement — no subdirs), so names group by dot-notation instead:<provider>.<service>.<action…>.yml— an extensible dotted path, not capped at three segments (toolchain.verify.yml,cf.worker.deploy.yml,cf.worker.preview.cleanup.yml). SeeCLAUDE.mdfor the naming standard.
Reusable workflow:
jobs:
verify:
uses: gingur/devkit/.github/workflows/toolchain.verify.yml@mainEvery stage defaults to the conventional script name — fmt:check, lint,
typecheck, test, build — and runs in that order. Pass '' to skip one:
with:
format: '' # no formatter in this repo yet
test: ''Composite action:
steps:
- uses: gingur/devkit/actions/toolchain.setup@mainRuntime and package-manager versions belong to the consuming repo. Proto reads the same declarations locally and in CI:
.nvmrc # Node
.bun-version # Bun (when used)
package.json # packageManager/devEngines for pnpm and other tooling
pnpm-lock.yaml
For local development, install proto once and run proto install in a repo to install its declared toolchain.
Shared configs:
Add devkit as a dev dependency and wire up the config you need:
pnpm add -D github:gingur/devkit#maindevkit is never published to npm — it is private, its version stays
0.0.0, and there are no tags. The git specifier is the only way to install it,
so a bare pnpm add -D @gingur/devkit fails with "not in the npm registry".
// .oxlintrc.json — oxlint resolves `extends` as file paths (relative to this
// file), not package specifiers, so point into node_modules:
{ "extends": ["./node_modules/@gingur/devkit/configs/oxlintrc.base.json"] }// oxfmt.config.ts — the only auto-discovered JS/TS config filename
// (`.oxfmtrc.json` / `.oxfmtrc.jsonc` are the JSON alternatives;
// `oxfmt.config.{js,mjs,cjs}` are NOT discovered)
export { default } from '@gingur/devkit/oxfmt';// package.json scripts — call the devkit CLI, not the tool binaries
"scripts": {
"lint": "devkit lint",
"lint:fix": "devkit lint --fix",
"fmt": "devkit fmt",
"fmt:check": "devkit fmt --check",
"staged": "devkit staged",
"prepare": "devkit hooks install"
}| Export | File | Bring your own |
|---|---|---|
@gingur/devkit/oxlint |
oxlintrc.base.json |
— |
@gingur/devkit/oxfmt |
oxfmt.config.mjs |
— |
@gingur/devkit/lint-staged |
lint-staged.config.js |
— |
@gingur/devkit/tsconfig |
tsconfig.base.json |
typescript |
The lint-staged config hands every staged file to both tools under a single
'*' group rather than listing extensions, so the hook and a repo-wide
oxfmt --check always agree on what is in scope. Both tools leave input they do
not recognise byte-identical — binaries and lockfiles included — so an allowlist
buys nothing and drifts silently as the tools add support. A file whose
extension oxfmt does recognise but cannot parse (malformed JSON, say) still
fails the commit, which is the point.
Two consequences worth knowing before you bump devkit:
- oxfmt now reaches file types the old globs skipped —
.tomlmost visibly, where it strips column alignment inwrangler.toml— so expect a one-time diff on the first commit that touches one. - Extending this config means merging commands into the
'*'array. A second glob overlaps'*'and lint-staged runs the two groups concurrently, putting two writers on one file.
oxlint, oxfmt and lint-staged are devkit's own dependencies.
A consumer declares @gingur/devkit and nothing else for this toolchain, and
devkit owns the versions.
The consequence that drives the CLI's existence: under pnpm's strict layout,
devkit's dependencies are not in your node_modules/.bin. A bare oxlint
in a script or a lint-staged task will not resolve. Only devkit is linked, and
every subcommand resolves its tool out of devkit's own install tree.
| Command | Runs |
|---|---|
devkit lint [...args] |
oxlint |
devkit fmt [...args] |
oxfmt |
devkit staged |
lint-staged |
devkit hooks install |
installs .githooks/ + sets core.hooksPath |
devkit --help lists them; devkit <group> lists one group's commands.
The three tool wrappers are blind: everything after the subcommand passes
through untouched, so a flag devkit does not model still works —
devkit lint --quiet src/, devkit lint --fix, and devkit lint --help, which
answers with oxlint's help rather than devkit's. devkit hooks install stays an
explicit consumer action (a prepare script) rather than a devkit package
lifecycle, so installing dependencies never runs a script and pnpm never needs
an onlyBuiltDependencies entry.
Exit codes: a wrapped tool's code propagates unchanged, a signal becomes
128 + signum, and a devkit usage error is 2.
Escape hatch. A repo that must pin or call a tool directly adds it as its own
devDependency — that puts the binary back in the consumer's .bin, where it
takes precedence for direct invocations — and keeps using the config exports.
typescript stays a peer dependency for exactly this reason: consumers run
their own tsc, and the TS major matters to them.
Migration (ESLint/Prettier → oxlint/oxfmt). Consumers track devkit via
#main, so they move in lockstep: on your next devkit bump, dropeslint/@eslint/js/typescript-eslint/prettierand any directoxlint/oxfmtdevDependency (devkit supplies them now), then replaceeslint.config.mjs/prettier.config.mjswith the.oxlintrc.json+oxfmt.config.tswiring shown here and point your scripts at the CLI. TypeScript baseline is^6 || ^7: use TS7 unless a dependency still needs the TypeScript JS compiler API (e.g.@astrojs/checkpeers^5 || ^6) — pin TS6 there until it catches up.
CI does not run against the committed lockfile's devkit pin: actions/toolchain.setup
(the setup path of toolchain.verify.yml and cf.worker.deploy.yml) runs
pnpm update @gingur/devkit after its frozen install, re-resolving the
dependency to whatever its specifier names on every run. The specifier is
the policy knob:
| Specifier | Every CI run resolves to |
|---|---|
github:gingur/devkit#main |
main head — live (the fleet default) |
github:gingur/devkit#<sha> |
that SHA — hold-back during a migration |
github:gingur/devkit#semver:<range> |
range-bounded, once version tags exist (future) |
The committed lockfile and local dev catch up on demand — run
pnpm update @gingur/devkit and commit; until then local can lag CI, and CI
is authoritative. Repos without an @gingur/devkit dependency are untouched
(the refresh is a verified no-op).
Fleet working rule: a shared-config change lands backward-compatible, or is rolled out fleet-wide the same day — live import puts every consumer's next verify and production deploy in the blast radius.
Since devkit owns oxlint and oxfmt as dependencies, a config option requiring a newer one no longer strands a consumer on an older binary: bumping devkit bumps the tool. The remaining floor risk is
typescript, still a peer, and any tool a consumer deliberately pins as its own devDependency — that pin wins in the consumer's.binfor direct invocations.
Pin to @main. This is the gingur consumer convention — single maintainer, single direction of change, so there's no benefit to maintaining version tags. Reproducibility lives on the consumer side via lockfile-pinned SHAs (e.g. pnpm-lock.yaml records the resolved commit when devkit is consumed as a git URL dep) — except the @gingur/devkit package dep itself in CI, which toolchain.setup re-resolves to its specifier every run (see Shared configs are live in CI).
Need a frozen reference point (paused upgrade, post-mortem snapshot)? Pin to a specific SHA: gingur/devkit/...@<sha>.
Pin by trust in who can move the tag:
-
gingur's own actions/workflows →
@main(we control them; see the consumer convention above). -
Third-party from a credible organization — the tool's official org or a well-known GitHub org → version tag. The vendor controls the tag, tags stay readable, and patch releases flow in:
uses: cloudflare/wrangler-action@v4 # Cloudflare (org) uses: Infisical/secrets-action@v1.0.16 # Infisical (org) uses: moonrepo/setup-toolchain@v0 # Moonrepo (org) uses: actions/checkout@v6 # GitHub
-
Third-party from an individual / community maintainer — a personal account, not an org → full commit SHA with a trailing version comment, per GitHub's security-hardening guidance. A compromised personal account could repoint a mutable tag at malicious code; a SHA can't be moved:
uses: marocchino/sticky-pull-request-comment@<sha> # v3.0.4 (individual maintainer)
The test: who can move the tag? A trusted org → tag. One person's account → SHA. To resolve a community action's tag to its commit:
gh api repos/<owner>/<repo>/commits/<tag> --jq .shaThree names, one CI surface:
| Name | Where | Notes |
|---|---|---|
production |
CI | The deployed instance. |
preview |
CI | PR / branch previews. Same shape, separate target. |
local |
Developer machine | Never appears in CI. Outside the workflow input enum. |
Reusable workflows and actions only accept production | preview for the environment input. local is a convention for human developers — it exists to give that mode a name without ever leaking into CI.
Infisical is the single source of truth for deploy credentials. Rotate in one place and it propagates to every consumer on the next OIDC fetch — no per-repo secrets, no commits, no PRs. The cf.worker.deploy.yml workflow fetches CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID from Infisical at deploy time, so consumers never store them.
Those are the credential's canonical names, read from the one path that holds it. There is deliberately no per-repository alias cell renaming it to something shorter: Infisical expands a secret reference using the caller's authority, so an identity narrowed to an alias path cannot follow the reference into the path that holds the value — and the resulting 403 fails the whole fetch, not just that key. Narrowing therefore lives in the identity's permissions, not in a second copy of the name.
When rotating a Cloudflare API token (annual, or on compromise / personnel change):
- Generate the new token — Cloudflare dashboard → My Profile → API Tokens → Create. Minimum scope: Workers Scripts (Edit), Workers KV Storage (Edit), Account Settings (Read), per-zone Workers Routes (Edit), per-zone DNS (Edit) (DNS edit is needed for custom-domain previews; KV Storage is probed by
wrangler deleteduring preview cleanup). - Update the value in Infisical — project → env → folder → click the secret → edit value → save. The audit log captures the change.
- Verify — trigger any consuming workflow (or wait for the next scheduled run). The next OIDC fetch returns the new value automatically; no consumer-side config change.
- Revoke the old token in Cloudflare once propagation is confirmed (24h grace recommended in case a background job cached the old value — our workflows don't cache, but the margin is cheap).
During an incident, this is the runbook: rotate in Infisical (step 2), then revoke at Cloudflare (step 4). Everything else follows automatically.
infisical scan (gitleaks engine, fully local — no auth) gates secrets in two places:
- CI — the
infisical.secrets.scan.ymlreusable workflow scans each PR's commit range and fails the job on any finding. - Pre-commit — a git hook runs
infisical scan git-changes --staged, catching secrets before they reach history (locally; bypassable with--no-verify, which CI backstops).
Both use one shared config, configs/infisical-scan.toml (gitleaks defaults +
tunable allowlist).
# .github/workflows/infisical.secrets.scan.yml
name: Secret scan
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
scan:
uses: gingur/devkit/.github/workflows/infisical.secrets.scan.yml@mainRequires the infisical CLI on the developer's PATH.
// package.json — no husky; devkit installs the hooks itself
"scripts": { "prepare": "devkit hooks install" },
"devDependencies": { "@gingur/devkit": "github:gingur/devkit#main" }# .husky/pre-commit — the hook body, unchanged
devkit staged
infisical scan git-changes --staged --config node_modules/@gingur/devkit/configs/infisical-scan.toml --redact --no-colordevkit hooks install writes .githooks/pre-commit and points
core.hooksPath at it. Commit .githooks/.
Why this replaced husky. husky points
core.hooksPathat.husky/_, which it generates during install and gitignores.core.hooksPathis repository config, so everygit worktree addinherits it — while the worktree has nonode_modulesand so no.husky/_. Git does not warn whencore.hooksPathnames a missing directory: it runs no hook and exits 0. Every commit from a worktree silently skipped every check. A tracked shim exists in every worktree, finds thedevkitbinary in the main checkout when the worktree has none, and fails loudly when it finds neither — because a hook that cannot run must not look like one that passed.Run
pnpm installin a worktree you intend to commit from. The fallback covers the binary, not your configs:lint-staged.config.js,oxfmt.config.tsand.oxlintrc.jsonall resolve@gingur/devkitrelative to the worktree, and a bare ESM specifier cannot be redirected. Without an install there, the hook fails with a config-resolution error — loudly, which is the point, but it is a failure rather than a fallback.Migrating, in this order — the first step matters most, because husky would otherwise run once more and reset
core.hooksPathback to.husky/_:
- Replace
"prepare": "husky"with"prepare": "devkit hooks install".- Drop
huskyfrom your devDependencies.- Run
pnpm install(ordevkit hooks installdirectly).- Commit
.githooks/,package.jsonandpnpm-lock.yaml— step 3 rewrites the lockfile, and omitting it fails the nextpnpm install --frozen-lockfilein CI.- Delete
.husky/_. Keep.husky/<hook>— that body is still what runs.
devkit hooks installstages.githooks/as part of its work, so expect it ingit statusafter any install.To audit a repo you do not control, check whether
core.hooksPathpoints at a directory that is tracked in git. If it is not, it exists only where an install step has run.
| Goal | Call |
|---|---|
| Verify (format + lint + typecheck + test + build) on PR | gingur/devkit/.github/workflows/toolchain.verify.yml@main |
| Deploy to production on push | gingur/devkit/.github/workflows/cf.worker.deploy.yml@main |
| Per-PR preview deploy | gingur/devkit/.github/workflows/cf.worker.preview.yml@main |
| Tear down preview on PR close | gingur/devkit/.github/workflows/cf.worker.preview.cleanup.yml@main |
| Roll back production to a prior version (manual) | gingur/devkit/.github/workflows/cf.worker.rollback.yml@main |
| Scan a PR's commits for leaked secrets | gingur/devkit/.github/workflows/infisical.secrets.scan.yml@main |
Every workflow here accepts an optional
runnerinput (a runner label, defaultubuntu-latest). See Self-hosted runner (local) for provisioning and the routing policy — a fork pull request never gets a self-hosted runner.
| Workflow | contents |
id-token |
pull-requests |
|---|---|---|---|
toolchain.verify |
read |
— | — |
cf.worker.deploy |
read |
write |
write (records version on source PR) |
cf.worker.preview |
read |
write |
write |
cf.worker.preview.cleanup |
read |
write |
write |
cf.worker.rollback |
read |
write |
— |
infisical.secrets.scan |
read |
— | — |
Selected workflows can route to a self-hosted runner on a local machine via the
runner input (see the note under the
reference table). The runner connects
outbound-only — HTTPS long-polling to GitHub — so it needs no inbound
ports, no tunnel, and no public address.
The runner label
localnames where a job runs. It is unrelated to thelocalenvironment in Environments, which names a developer-machine mode that never appears in CI.
Personal accounts have no org-level or shareable runners, so one runner
instance registers per repo. Several instances can share the same machine —
each in its own directory (e.g. ~/actions-runner/<repo>/). Open the repo's
Settings → Actions → Runners → New self-hosted runner page for the
download + verify commands (they embed the current runner version and a fresh
registration token), extract into the per-repo directory, then configure
against the repo URL with the single custom label local:
mkdir -p ~/actions-runner/<repo> && cd ~/actions-runner/<repo>
# download + extract the runner per the "New self-hosted runner" page, then:
./config.sh \
--url https://github.com/gingur/<repo> \
--token "$(gh api -X POST repos/gingur/<repo>/actions/runners/registration-token --jq .token)" \
--labels local \
--unattendedFrom the same directory, the bundled script installs and starts the runner as a service — systemd on Linux, launchd on macOS (same script):
sudo ./svc.sh install && sudo ./svc.sh start # Linux (systemd)
./svc.sh install && ./svc.sh start # macOS (launchd — no sudo)Hardening option — --ephemeral. Passing --ephemeral to config.sh
makes the runner deregister after each job, so no job ever sees a
predecessor's workspace. The tradeoff: auto-re-registration needs a fresh
registration token per job via the REST API and a PAT (extra moving parts on
the machine). A persistent runner is acceptable here given the routing
policy below — only operator-gated triggers ever reach it.
git,curl,tar— checkout and runner tooling.- The
ghCLI — preinstalled on GitHub-hosted images but not on local machines; used for runner registration and by workflow steps that shell out to it. - Node, pnpm, Bun, and other proto-managed tools are not prerequisites:
actions/toolchain.setupinstalls the repo-declared toolchain and caches it.
A public repo must never run a fork's code on a machine you own. Within
that rule, local may take:
- operator-gated triggers —
pushto main (cf.worker.deploy) andworkflow_dispatch(cf.worker.rollback); - same-repository pull requests — preview, preview cleanup, verify and secret scan. Only collaborators with write access can open these.
Every PR-triggered job enforces the fork rule itself, at runner allocation, so a
caller passing runner: local cannot opt out of it:
| Workflow | Fork pull request |
|---|---|
cf.worker.preview*.yml |
job skipped (if: guard below) — it could never fetch a credential anyway |
toolchain.verify.yml, infisical.secrets.scan.yml |
runs on ubuntu-latest regardless of runner — forks are still verified and scanned |
Anyone with write access, bots included, still runs on local — the same trust
the repo already extends to them.
Set the repo variable RUNNER=local and pass it through in every caller
workflow — deploy and rollback alike. A caller repo's variables don't resolve inside a
cross-repo reusable, so the reusables' own vars.RUNNER fallback covers only
devkit's own direct dispatch runs — a consumer that omits the input silently runs
GitHub-hosted (bit us: gingur/hooks, 2026-07-10):
gh variable set RUNNER --repo gingur/<repo> --body localjobs:
deploy:
uses: gingur/devkit/.github/workflows/cf.worker.deploy.yml@main
with:
runner: ${{ vars.RUNNER }}
# …existing inputs unchangedAn unset or empty variable falls back to ubuntu-latest, so flipping
local ↔ hosted is a repo-variable change with no commit:
gh variable delete RUNNER --repo gingur/<repo> # back to GitHub-hostedinfisicalDomain is required on every workflow that fetches secrets, and has no
default. A silent fallback to Infisical Cloud would send the OIDC token to the
wrong vault and fail as what looks like a claim mismatch — an expensive thing to
debug. Set it once as a repository variable:
gh variable set INFISICAL_DOMAIN --repo gingur/<repo> --body http://127.0.0.1:8091A private Infisical origin is only reachable from a self-hosted runner, so
runner and infisicalDomain move together. That has one consequence worth
stating plainly: preview deploys now depend on the runner's host being up.
Production deploys already did.
It has a second, sharper one. On a public repository a fork pull request must never allocate a self-hosted runner, or contributor code executes on the operator's machine. Every PR-triggered job here is therefore guarded:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}Nothing is lost. GitHub already refuses id-token: write and passes no secrets
to fork-originated runs, so those jobs could never have fetched a credential;
the guard makes them skip instead of failing inside an allocated runner. Fork
pull requests get no preview — same as before, one step earlier.
In each repo that routes to local: Settings → Actions → General → Fork
pull request workflows from outside collaborators → enable "Require
approval for all outside collaborators".
- Machine offline: jobs targeting
localqueue for up to 24 hours, then fail. FlipRUNNERback to empty/unset to drain to GitHub-hosted runners. - OIDC / Infisical work unchanged on self-hosted — tokens are issued by GitHub at run time, so no secrets are stored on the machine.
- Warm caches: a persistent runner keeps its tool / pnpm caches between jobs — repeat deploys get faster as a side benefit.
Each PR gets an immutable masked preview at https://pr-<N>.<domain>, redeployed on
every push and torn down when the PR closes. Previews run only for same-repo (branch)
PRs — fork PRs get no OIDC/secrets by design.
Requires wrangler.toml to use named environments (see Environments):
[assets]
directory = "./dist"
[env.production]
name = "<app>" # production routes / custom domain go here
[env.preview]
name = "<app>-preview" # placeholder; overridden per-PR by --name, no custom routePreview on PR — .github/workflows/cf.worker.preview.yml in the consumer:
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
preview:
uses: gingur/devkit/.github/workflows/cf.worker.preview.yml@main
with:
app: <app>
domain: <your-domain>
cfZone: <zone-id>
runner: ${{ vars.RUNNER }} # self-hosted only reaches a private Infisical; see below
infisicalDomain: ${{ vars.INFISICAL_DOMAIN }}
infisicalProject: <project-slug>
infisicalEnv: <env-slug> # where the CF token lives (often "public")
infisicalPath: /shared/cloudflare/account # the canonical path, read directly
infisicalIdentity: <preview-identity-uuid> # see note below — NOT the production identity
secrets: inheritCleanup on close — .github/workflows/cf.worker.preview.cleanup.yml:
on:
pull_request:
types: [closed]
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
cleanup:
uses: gingur/devkit/.github/workflows/cf.worker.preview.cleanup.yml@main
with:
app: <app>
domain: <your-domain>
cfZone: <zone-id>
runner: ${{ vars.RUNNER }}
infisicalDomain: ${{ vars.INFISICAL_DOMAIN }}
infisicalProject: <project-slug>
infisicalEnv: <env-slug>
infisicalPath: /shared/cloudflare/account
infisicalIdentity: <preview-identity-uuid> # see note below — NOT the production identity
secrets: inheritThe preview worker is named
<app>-pr-<N>and the URLpr-<N>.<domain>is attached as a Workers custom domain — so<domain>must be a Cloudflare zone on the same account. The token needs DNS (Edit) on that zone (see Secret rotation).
Use a preview-scoped Infisical identity. Every preview job (deploy, domain, cleanup) runs under the GitHub
previewenvironment, so it authenticates with the OIDC subjectrepo:<owner>/<repo>:environment:preview— not the…:environment:productionsubject your deploy uses. Create a second machine identity (e.g.gh-<app>-preview) whose OIDC trust is bound to that preview subject and grant it the same secret path, then pass its UUID asinfisicalIdentityabove. Reusing the production identity makes the credential fetch fail with403 Access denied: OIDC subject not allowed. This keeps the production identity's trust narrow (least privilege) rather than broadening it to accept PR contexts.
Production deploys are versioned by Cloudflare. To revert, dispatch a rollback workflow with the target version ID (or leave it blank to roll back to the immediately-previous version).
Every production deploy posts a sticky comment to its source PR recording the version it produced, plus a one-click GitHub-UI link and a CLI command to roll back to it. Because PRs are squash-merged, your PR list doubles as a deploy index: open the PR you want to return to and use its rollback links.
If a PR comment is missing (a direct push, or a version predating this feature),
list versions in CI with the cf.worker.versions action, or use
wrangler versions list locally / the Cloudflare dashboard.
devkit ships the rollback as a workflow_call reusable. It targets
production only (the job hardcodes environment: production; there is no
env input — a preview worker is disposable and gets torn down on PR close
instead of rolled back). Add a thin workflow_dispatch wrapper in your repo
so the "Run workflow" form gives you a free-text version field:
# .github/workflows/rollback.yml
name: Rollback
on:
workflow_dispatch:
inputs:
version:
description: Cloudflare version UUID (blank = previous version)
type: string
required: false
permissions:
contents: read
id-token: write
jobs:
rollback:
uses: gingur/devkit/.github/workflows/cf.worker.rollback.yml@main
with:
version: ${{ inputs.version }}
infisicalDomain: ${{ vars.INFISICAL_DOMAIN }}
infisicalProject: <your-project-slug>
infisicalEnv: public
infisicalPath: <your-secret-path>
infisicalIdentity: <your-identity-uuid>
secrets: inheritGitHub does not support pre-filling the dispatch form via URL or generating its dropdown from live data, so the version field is free text — paste the UUID from the PR comment. A genuinely in-browser version picker is possible via
boasiHQ/interactive-inputs(it pauses the run behind an ngrok tunnel to the runner), but it adds an ngrok secret, a public tunnel on the credentialed rollback path, and billed idle minutes while it waits for a human — not adopted here.
Two equivalent ways — both drive the same workflow_dispatch wrapper:
- GitHub UI — open the wrapper's page at
https://github.com/<owner>/<repo>/actions/workflows/rollback.yml, click Run workflow ▸, paste the version UUID, and run. The deploy comment links straight to this page. (GitHub can't deep-link to a pre-filled form, so you still paste the UUID — but the form itself is fully UI-driven.) - CLI —
gh workflow run rollback.yml -f version=<uuid>.
The version-record comment builds its UI link and CLI command from the wrapper filename, which it assumes is
rollback.yml. If you name your wrapper something else, passrollbackWorkflow: <your-file>.ymltocf.worker.deploy.ymlso the comment points at the right workflow.
From a checkout of the consumer repo with CLOUDFLARE_API_TOKEN /
CLOUDFLARE_ACCOUNT_ID set:
wrangler versions list --env production
wrangler rollback <version-id> --env production --message "manual rollback"