Waiting for npm before deploying Simple Icons 16.40.0 downstream
Downstream deployments skipped Simple Icons 16.40.0 because npm took about five minutes to serve it, so an upstream environment wait timer and version check were added. I also wrote a PR-description skill and set up the CDN to purge only changed icons.
Read on GitHubThe Simple Icons 16.40.0 release showed why downstream deployments need to wait until npm serves the new version. I also turned one of my PR writing habits into a reusable skill and chose how the CDN should refresh changed icons after each deployment.
Checking npm availability before downstream deployments
The release workflow waited for npm and GitHub to finish, but the website and CDN still resolved simple-icons@latest to 16.39.0 and skipped deployment. At 14:36:43 Shanghai time, npm publish had succeeded. At 14:37:42, the Rust website requested 16.40.0 and got ETARGET. The registry recorded the release at 14:41:55, a gap of five minutes and twelve seconds. That fits npm's automated malware scan, which typically delays availability by about five minutes and can take 15 minutes or longer. npm's announcement does not say whether the scan uses AI. Release run · Website run · CDN run · Rust website log · npm's scanning announcement
The upstream repository's npm-availability environment has a 10-minute wait timer. The wait uses no runner time and adds no billable minutes. In PR #15213 (f8ab597), one job checks simple-icons@latest when the timer expires. The websites, font, and CDN are triggered only if it matches the published version. The public registry returned the expected version. In simulations, a stale version and a failed lookup both stopped the check. GitHub's wait timer documentation · Simple Icons PR #15213
Writing PR descriptions for the person reviewing them
For a small PR, I'm happy with a couple of sentences and no headings. GitHub Actions already shows which checks passed, so a separate Validation section makes me read the same information twice. A more involved change can use a little more explanation.
I wanted viewers to see that habit, so I asked the agent to capture it in write-pr-description. We used the change itself as an example, and the agent drafted a title and two sentences. I wonder if a skill like this counts as part of an agent harness. Left to its own devices, an agent can write something accurate and still take too long to say it. Read the skill
Purging only the icons that changed
After a weekly release, Cloudflare could still serve an old SVG or a cached 404 for a newly added icon. The CDN workflow now reads the SVG files and default colors from two versions of the npm package and hashes them without running the package's JavaScript. Comparing 16.39.0 with 16.40.0 picked up the new braveorigin icon and a change to googleearthengine. A removed icon also goes on the purge list. CDN change
After a successful Fly.io deployment, the workflow purges each affected icon's Cloudflare cache tag. Color and size variants share that tag, as do cached 404s, so a request made before an icon was added can pick up the new SVG. The workflow also purges the icon's standard path prefix to reach older entries. I configured an account-owned token for simpleicons.org with the Cache Purge permission, stored it in the GitHub Actions secret CLOUDFLARE_CACHE_PURGE_TOKEN, and set CLOUDFLARE_ZONE_ID as a repository variable. Cloudflare cache tags · Account API tokens