Skip to content

Pin renderer 0.4.0 on the site + auto-bump tool pins on release - #52

Merged
OliEder merged 2 commits into
mainfrom
feat/renderer-pin-and-autosync
Aug 29, 2026
Merged

OliEder merged 2 commits into
mainfrom
feat/renderer-pin-and-autosync

Conversation

@OliEder

@OliEder OliEder commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Answers "does the site use the new renderer, or do we need to build auto-update?" — both: fix the acute skew now, and add the automation so it never drifts again.

1. Acute fix — pin renderer to 0.4.0

The Try-it diagram tab renders with @opencoachingformat/renderer, but the site was pinned to 0.1.0 — so it showed the old renderer (no side/arc routing, old dribble line). Bumped OCF_RENDERER_VERSION → 0.4.0 (verified the 0.4.0 browser bundle resolves on jsDelivr; renderer-playground tests pass; site builds 35 pages).

2. Structural fix — auto-bump on tool release

New receiver workflow sync-tool-version.yml: when ocf-renderer or ocf-validator publishes, it fires a repository_dispatch (renderer_released / validator_released) here; this workflow bumps the matching OCF_*_VERSION constant in site/src/lib/ and opens a human-reviewed PR (never auto-merged). Same controlled pattern as the spec→validator schema sync. The version is semver-validated before it drives the bump.

Paired sender PRs add the dispatch to each tool's release workflow:

  • ocf-renderer: ci/dispatch-site-on-release
  • ocf-validator: ci/dispatch-site-on-release

One-time setup you'll need

The senders require an OCF_SITE_DISPATCH_TOKEN secret in ocf-renderer and ocf-validator — a token with contents:write + pull-requests:write on opencoachingformat/spec. Without it the dispatch step is skipped (releases still succeed), so the automation is inert until the secret is set. (Same shape as the existing OCF_VALIDATOR_DISPATCH_TOKEN used by the spec→validator sync.)

Leaving merges to you. Suggested order: this PR first (so the receiver exists), then the two sender PRs.

🤖 Generated with Claude Code

Oliver-Marcus Eder added 2 commits August 29, 2026 07:43
The Try-it diagram tab renders with @opencoachingformat/renderer; the site was
pinned to 0.1.0, so it showed the old renderer (no side/arc routing, old dribble
line). Bump to the freshly published 0.4.0. Verified the 0.4.0 browser bundle
resolves on jsDelivr and the renderer-playground tests pass.
New receiver workflow: ocf-renderer/ocf-validator fire a repository_dispatch
(renderer_released/validator_released) here on publish; this bumps the matching
OCF_*_VERSION constant in site/src/lib/ and opens a human-reviewed PR. Same
controlled pattern as the spec->validator schema sync — no silent live-site
change. Version is semver-validated before it drives the bump.
@OliEder
OliEder merged commit 2c6e58f into main Aug 29, 2026
1 check passed
@OliEder
OliEder deleted the feat/renderer-pin-and-autosync branch August 29, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant