Tell titaniumsdk.com to recapture when a release publishes - #992
Open
cb1kenobi wants to merge 1 commit into
Open
Tell titaniumsdk.com to recapture when a release publishes#992cb1kenobi wants to merge 1 commit into
cb1kenobi wants to merge 1 commit into
Conversation
The site names the current CLI version on its landing page and on /downloads, and derives the minimum CLI for each SDK release from the same data. All of it is statically generated, so a release changes nothing there until something recaptures - which was a manual step nobody was going to remember. The dispatch lives in titaniumsdk.com, the way the seventeen API-doc source repositories already work: the event name and the target repository are that site's to change, so a rename does not become a pull request here. `needs: publish` is load-bearing. The capture reads `engines.node` from the npm packument, so a release that reached the site before npm had the tarball would be recorded with a date and a URL but no Node range. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
notify-titaniumsdkjob topublish.yml, so shipping a CLI updates thewebsite instead of waiting for someone to remember.
Why
titaniumsdk.com names the current CLI version on its landing page and on
/downloads, and derives the minimum CLI for each SDK release on itscompatibility page from the same captured data. The site is statically
generated and takes no network at build time, so a CLI release changes nothing
there until something tells it to recapture. Today that is a manual
pnpm registry:cli.How
The dispatch itself lives in titaniumsdk.com, which is how the seventeen
API-doc source repositories already notify it (
notify-api-docs.yml, called bytidev/titanium-sdkamong others). The event name and the target repository arethat site's to change, so a rename there does not become a pull request here.
It carries no payload beyond the release tag, which is used for the commit
message. The capture reads the whole release history from GitHub and every
version from npm on its own.
Two things worth reviewing
needs: publishis load-bearing, not tidy. The capture readsengines.nodefrom the npm packument. A release that reached the site beforenpm had the tarball would be recorded with a date and a URL but no Node range,
and that range is what the compatibility page reads. Running after the publish
step is what makes the packument current.
Prereleases dispatch too.
publish.ymlalready publishes them under thenexttag. The site records prereleases in its registry but never advertisesone as the current version, so this is correct and needs no condition.
Before this can merge
which adds
notify-cli-release.ymlandrefresh-cli-releases.yml. That hasto land on
mainfirst - this job references it at@mainand will fail toresolve until then.
REGEN_DOCS_GITHUB_TOKENmust be visible to this repository. It is the sameorg secret
tidev/titanium-sdkuses for its notify job; I could not verifyits repository scope without org admin. If it is not in scope, this job fails
loudly on a 401 rather than going quietly green.
Validated with
actionlint(clean).🤖 Generated with Claude Code