Skip to content

Commit

Permalink
chore: improve logic of getting the latest sha
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 8, 2024
1 parent df7f9ab commit 41514c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || []
Expand Down

0 comments on commit 41514c7

Please sign in to comment.