From 41514c78291f7f3983c5acd62c79358590ae5618 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 8 Jan 2024 19:28:37 +0100 Subject: [PATCH] chore: improve logic of getting the latest sha --- scripts/bump.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bump.ts b/scripts/bump.ts index 78992bf..94c1517 100644 --- a/scripts/bump.ts +++ b/scripts/bump.ts @@ -9,7 +9,7 @@ await git.add(['.']) const result = await git.status() -const lastReleaseSHA = (await git.log(['-n', '1', '--pretty=format:%h', '--', 'packages/tm-grammars/package.json', 'packages/tm-themes/package.json'])).latest?.hash +const lastReleaseSHA = (await git.log(['-n', '1', '--pretty=format:%h', '--grep', 'ci skip'])).latest?.hash const diff = !lastReleaseSHA ? [] : (await git.diffSummary([lastReleaseSHA!, 'HEAD']))?.files || []