From ad9f424eefc05cfd3a95a88dd82d38aafdd15a20 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Wed, 6 May 2026 23:28:33 +0200 Subject: [PATCH] chore: use --no-git-tag-version for pnpm version to support dirty trees during release --- bin/release.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/release.ts b/bin/release.ts index 5de3a826d..f1b962057 100644 --- a/bin/release.ts +++ b/bin/release.ts @@ -204,7 +204,11 @@ try { run('git pull --ff-only', {cwd: '../ether.github.com/'}); console.log('Committing documentation...'); run(`cp -R out/doc/ ../ether.github.com/public/doc/v'${newVersion}'`); - run(`pnpm version ${newVersion}`, {cwd: '../ether.github.com'}); + // --no-git-tag-version: just update package.json. The git add+commit below + // pick up both the bump and the freshly-copied docs in a single commit. + // pnpm 11 refuses `pnpm version` on a dirty tree, and the doc copy above + // dirties it, so we cannot let pnpm touch git here. + run(`pnpm version --no-git-tag-version ${newVersion}`, {cwd: '../ether.github.com'}); run('git add .', {cwd: '../ether.github.com/'}); run(`git commit -m '${newVersion} docs'`, {cwd: '../ether.github.com/'}); } catch (err:any) {