Skip to content

Full history in CI

The plugin reads versions from the Git clone your build runs in. A shallow clone holds only the latest commits, so pages show only those. During the build the plugin logs:

This is a shallow clone, so pages show only the versions it has.

actions/checkout fetches one commit unless told otherwise:

- uses: actions/checkout@v7
with:
fetch-depth: 0

Set the clone depth to 0 for the job that builds the site:

variables:
GIT_DEPTH: 0

Fetch the rest of the history before the build:

Terminal window
git fetch --unshallow || true
npm run build

|| true keeps the build going when the clone was already complete.

If your site lives in a subfolder of the repository (website/ next to docs/), nothing changes: the plugin finds the root of the repository by itself.