[3.0.0] changesets version fails when branch exceeds 64 commits
Author: DaanRoetCreated Aug 13, 2026Updated Aug 24, 2026
Not entirely sure if this a v3 regression, but I never really encountered it before, as soon as my branch hits 65 commits the following error is thrown in our PR builds, regardless of the contents of the commit:
Run changeset version to version packages with prerelease versions.
changeset v3.0.0
◇ IMPORTANT ────────────────────────────────────────────────────────────────╮
│ │
│ You are in prerelease mode! │
│ If you meant to do a normal release you should revert these changes and │
│ run changeset pre exit. │
│ You can then run changeset version again to do a normal release. │
│ │
╰────────────────────────────────────────────────────────────────────────────╯
Error: fatal: shallow file has changed since we read it
at deepenCloneBy (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/git/dist/index.mjs:101:32)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Module.getCommitsThatAddFiles (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/git/dist/index.mjs:74:4)
at async getCommitsThatAddChangesets (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/apply-release-plan/dist/index.mjs:206:9)
at async getNewChangelogEntry (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/apply-release-plan/dist/index.mjs:330:18)
at async applyReleasePlan (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/apply-release-plan/dist/index.mjs:234:32)
at async version (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/version.mjs:64:29)
at async CAC.<anonymous> (file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/index.mjs:60:2)
at async file:///home/runner/.cache/pnpm/dlx/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/index.mjs:117:2
Exited with code 1when I squash my branch to 64 commits or lower it passes again
Source: changesets/changesets