ci: fetch git history

This commit is contained in:
Daniel Roe 2023-03-03 10:45:47 +00:00
parent 6084f6416b
commit e11d55a492
2 changed files with 3 additions and 1 deletions

View File

@ -172,6 +172,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
with:

View File

@ -18,7 +18,7 @@ async function main () {
const config = await loadChangelogConfig(process.cwd())
const latestTag = execaSync('git', ['describe', '--tags', '--abbrev=0', 'main']).stdout
const latestTag = execaSync('git', ['describe', '--tags', '--abbrev=0']).stdout
const commits = await getGitDiff(latestTag)
const bumpType = determineSemverChange(parseCommits(commits, config), config)