upgrade-ci-versions
Upgrade container images, Node.js versions, and package versions in CI code examples, then open a PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Upgrade container images, Node.js versions, and package versions in CI code examples, then open a PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify that a Chromatic docs page uses snapshot terminology per the accepted "Billed Snapshots" proposal — snapshots are units of work that incur "billed snapshots" (the unit of billing), never interchangeable. Use when writing, editing, or reviewing any page that mentions snapshots, captures, TurboSnap, billing, usage, or plan limits, or when asked to "check terminology", "audit snapshot terms", "does this page meet the terminology criteria", or review a docs PR touching snapshot/billing language.
Write or edit Chromatic docs content AND verify every internal link and anchor it contains resolves against the real local build — before the change is committed. Use whenever you add, edit, move, or rename a page under src/content/**, add or change cross-references between docs pages, change a heading that other pages may link to (#anchors), or are asked to "check the links", "verify the links work", "did I break any links", or review a docs PR for broken links. Catches broken links in UNMERGED edits, which `pnpm check-links` (production-only) cannot.
| name | upgrade-ci-versions |
| description | Upgrade container images, Node.js versions, and package versions in CI code examples, then open a PR |
Upgrade all versioned references in CI code examples under src/content/ci/, src/content/playwright/ and src/content/vitest. Then open a PR with the changes.
Scan every .md and .mdx file in src/content/ci/ for the following patterns and upgrade each to its latest stable/LTS version:
| Pattern | Example | Where to look up latest |
|---|---|---|
| Node.js version number | node-version: 24.13.0, cimg/node:24.13.0 | https://nodejs.org/en/download/ — use latest LTS release |
| Node.js Docker image codename | node:krypton (GitLab) | https://hub.docker.com/_/node/tags — use latest LTS codename |
| Playwright Docker image | mcr.microsoft.com/playwright:v1.58.0-noble | https://playwright.dev/docs/docker |
| Cypress Docker image | cypress/browsers:node-24.15.0-chrome-148.0.7778.96-1-ff-150.0.3-edge-148.0.3967.54-1 | https://hub.docker.com/r/cypress/browsers/tags |
actions/checkout | actions/checkout@v4 | https://github.com/actions/checkout/releases |
actions/setup-node | actions/setup-node@v4 | https://github.com/actions/setup-node/releases |
actions/upload-artifact | actions/upload-artifact@v4 | https://github.com/actions/upload-artifact/releases |
actions/download-artifact | actions/download-artifact@v4 | https://github.com/actions/download-artifact/releases |
Check current versions — grep src/content/ci/, src/content/playwright/, and src/content/vitest/ to find every pinned version. Note each unique value and which files it appears in.
Look up latest versions — for each type above, fetch the latest stable version from the authoritative source. Use WebFetch or WebSearch to resolve current versions.
2.1 Skip updating the Jenkins node version in src/content/ci/jenkins.md because the node version is configured in the Jenkins application not in the CI code examples.
2.2 Skip updating the Travis documentation in src/content/ci/travis.md because Travis CI node and Playwright are lacking official support and the documentation is outdated.
2.3 Cypress Docker images are versioned with a combination of Node.js, Chrome, Firefox, and Edge versions. Update image to match the Node.js version you are upgrading to and always use the one with the browsers.
Update all files — make the replacements consistently across all CI files. A version like 24.13.0 will appear in multiple files; update every occurrence. Keep the surrounding syntax unchanged (only the version string changes).
Summarize the changes — list every substitution made: old value → new value, and which files were affected.
Open a PR — follow the create-pr skill to push the branch and open a draft PR. Title format: chore: upgrade CI code example versions (<date>). The PR body summary should list the version bumps as bullet points.