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.GitHub Actions
Section titled “GitHub Actions”actions/checkout fetches one commit unless told otherwise:
- uses: actions/checkout@v7 with: fetch-depth: 0GitLab CI
Section titled “GitLab CI”Set the clone depth to 0 for the job that builds the site:
variables: GIT_DEPTH: 0Other hosts
Section titled “Other hosts”Fetch the rest of the history before the build:
git fetch --unshallow || truenpm run build|| true keeps the build going when the clone was already complete.
Pages in a subfolder
Section titled “Pages in a subfolder”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.