From 2b3193378bdf9ead22c1522e7a0f2f6fb5f1445d Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 2 Aug 2025 12:09:02 +0200 Subject: [PATCH] chore: added git stash to release --- bin/release.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/release.ts b/bin/release.ts index 5c2b1b4e9..3bc7db9a1 100644 --- a/bin/release.ts +++ b/bin/release.ts @@ -56,6 +56,8 @@ const readJson = (filename: string) => JSON.parse(fs.readFileSync(filename, {enc const assertWorkDirClean = (opts:{ cwd?: string; } = {}) => { + // Stash any changes in the working directory so that we can check for modifications. + runc('git stash') opts.cwd = runc('git rev-parse --show-cdup', opts) || cwd; const m = runc('git diff-files --name-status', opts); console.log(">"+m.trim()+"<")