From 29e63c2efcbb5b51ca953d131dce13bc9b5a9448 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sat, 5 Dec 2026 05:14:05 +1300 Subject: [PATCH] Docs: the GitHub Action is used as @v0, which follows each release; pin a release tag such as @v0.2.26 to hold one --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- frontend/content/docs/ci/github-actions.md | 12 +++++++----- frontend/scripts/cli-version.mjs | 2 +- gemini-extension.json | 2 +- skills/visualci-github-actions/SKILL.md | 12 +++++++----- 7 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index ae4a3e12..5bfb0fcc 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -5,7 +5,7 @@ "plugins": [ { "name": "visualci", - "version": "0.1.61", + "version": "0.1.62", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "author": { "name": "DocSpring", "url": "https://visualci.com" }, "homepage": "https://visualci.com/docs/skills/", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 3073e047..c4d5c0c9 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "visualci", - "version": "0.1.61", + "version": "0.1.62", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "author": { "name": "DocSpring", "url": "https://visualci.com" }, "homepage": "https://visualci.com/docs/skills/", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 41c1ee6b..556bc8dc 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "visualci", "displayName": "VisualCI", - "version": "0.1.61", + "version": "0.1.62", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "author": { "name": "DocSpring" diff --git a/frontend/content/docs/ci/github-actions.md b/frontend/content/docs/ci/github-actions.md index 63de29d6..0d6baef0 100644 --- a/frontend/content/docs/ci/github-actions.md +++ b/frontend/content/docs/ci/github-actions.md @@ -21,7 +21,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors - run: npm test -- -u # write snapshots instead of failing; see the snapshot guides - - uses: DocSpring/visualci/clients/github-action@v{{cli_version}} + - uses: DocSpring/visualci/clients/github-action@v0 if: always() with: token: ${{ secrets.VISUALCI_TOKEN }} @@ -30,6 +30,8 @@ jobs: screenshots --platform chromium-linux --threshold 0.1 ``` +`@v0` follows each new release of the action and its CLI. To keep a new release from changing a build, pin a release tag such as `@v{{cli_version}}` in its place, as you would `VISUALCI_VERSION` in other CIs. + Run it on `pull_request` and on pushes to your main branch only: with `push` on every branch too, each commit to a pull request runs twice and sends two builds. The action installs the CLI, creates the build, uploads and finalizes it. `upload` takes one `visualci upload` per line, as its arguments (paths, `--from`, `--prefix`, `--platform`, `--format`); leave it out to send the `uploads` in [visualci.yml](/docs/reference/config/). Without a token the step fails, so a misnamed secret can't pass quietly. The token comes from `token`, or from `VISUALCI_TOKEN` in the workflow's or job's `env`. The exceptions are where GitHub passes no repository secrets: a fork's pull request and runs in a fork get none, and Dependabot's pull requests get only Dependabot secrets. The action skips those with a notice; [send a fork's from a second workflow](#pull-requests-from-forks), and add `VISUALCI_TOKEN` to the Dependabot secrets to review Dependabot's. @@ -42,7 +44,7 @@ The action installs the CLI, creates the build, uploads and finalizes it. `uploa | `wait` | Wait for the result, and fail the step when the project's CI mode says CI should fail. | | `allow-empty` | The build may have no snapshots on purpose. | | `finalize`, `finalize-only` | For several jobs sharing one build (below). | -| `version` | The CLI release to install. | +| `version` | The CLI release to install. Default: the release that tag of the action came with. | ### Several jobs, one build @@ -56,7 +58,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from browser: [chromium, webkit] steps: # ... checkout and tests ... - - uses: DocSpring/visualci/clients/github-action@v{{cli_version}} + - uses: DocSpring/visualci/clients/github-action@v0 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize: false @@ -68,7 +70,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@v{{cli_version}} + - uses: DocSpring/visualci/clients/github-action@v0 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize-only: true @@ -112,7 +114,7 @@ jobs: - uses: actions/checkout@v4 # your default branch: the fork's commits are only fetched with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@v{{cli_version}} + - uses: DocSpring/visualci/clients/github-action@v0 with: token: ${{ secrets.VISUALCI_TOKEN }} artifact: visualci diff --git a/frontend/scripts/cli-version.mjs b/frontend/scripts/cli-version.mjs index 336d56fd..a98a9e8a 100644 --- a/frontend/scripts/cli-version.mjs +++ b/frontend/scripts/cli-version.mjs @@ -1,5 +1,5 @@ // The CLI release the docs install: `{{cli_version}}` in a page's Markdown (VISUALCI_VERSION={{cli_version}}, -// DocSpring/visualci/clients/github-action@v{{cli_version}}) is filled in at build time with the newest published +// the pinned github-action@v{{cli_version}} tag) is filled in at build time with the newest published // release, so the docs never pin an old one or a CLI nobody can download yet (a release goes out after CI on main // passes, .github/workflows/release.yml, later than the site deploys). The generated skills (scripts/skills.mjs) are // committed, so they say x.y.z and where to find the newest release instead. diff --git a/gemini-extension.json b/gemini-extension.json index 15d44f8b..c18f411d 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "visualci", - "version": "0.1.61", + "version": "0.1.62", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "mcpServers": { "visualci": { diff --git a/skills/visualci-github-actions/SKILL.md b/skills/visualci-github-actions/SKILL.md index a6be8cae..81336616 100644 --- a/skills/visualci-github-actions/SKILL.md +++ b/skills/visualci-github-actions/SKILL.md @@ -28,7 +28,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors - run: npm test -- -u # write snapshots instead of failing; see the snapshot guides - - uses: DocSpring/visualci/clients/github-action@vx.y.z + - uses: DocSpring/visualci/clients/github-action@v0 if: always() with: token: ${{ secrets.VISUALCI_TOKEN }} @@ -37,6 +37,8 @@ jobs: screenshots --platform chromium-linux --threshold 0.1 ``` +`@v0` follows each new release of the action and its CLI. To keep a new release from changing a build, pin a release tag such as `@vx.y.z` in its place, as you would `VISUALCI_VERSION` in other CIs. + Run it on `pull_request` and on pushes to your main branch only: with `push` on every branch too, each commit to a pull request runs twice and sends two builds. The action installs the CLI, creates the build, uploads and finalizes it. `upload` takes one `visualci upload` per line, as its arguments (paths, `--from`, `--prefix`, `--platform`, `--format`); leave it out to send the `uploads` in [visualci.yml](https://visualci.com/docs/reference/config.md). Without a token the step fails, so a misnamed secret can't pass quietly. The token comes from `token`, or from `VISUALCI_TOKEN` in the workflow's or job's `env`. The exceptions are where GitHub passes no repository secrets: a fork's pull request and runs in a fork get none, and Dependabot's pull requests get only Dependabot secrets. The action skips those with a notice; [send a fork's from a second workflow](#pull-requests-from-forks), and add `VISUALCI_TOKEN` to the Dependabot secrets to review Dependabot's. @@ -49,7 +51,7 @@ The action installs the CLI, creates the build, uploads and finalizes it. `uploa | `wait` | Wait for the result, and fail the step when the project's CI mode says CI should fail. | | `allow-empty` | The build may have no snapshots on purpose. | | `finalize`, `finalize-only` | For several jobs sharing one build (below). | -| `version` | The CLI release to install. | +| `version` | The CLI release to install. Default: the release that tag of the action came with. | ### Several jobs, one build @@ -63,7 +65,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from browser: [chromium, webkit] steps: # ... checkout and tests ... - - uses: DocSpring/visualci/clients/github-action@vx.y.z + - uses: DocSpring/visualci/clients/github-action@v0 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize: false @@ -75,7 +77,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@vx.y.z + - uses: DocSpring/visualci/clients/github-action@v0 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize-only: true @@ -119,7 +121,7 @@ jobs: - uses: actions/checkout@v4 # your default branch: the fork's commits are only fetched with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@vx.y.z + - uses: DocSpring/visualci/clients/github-action@v0 with: token: ${{ secrets.VISUALCI_TOKEN }} artifact: visualci