mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
ci: fetch git history
This commit is contained in:
parent
6084f6416b
commit
e11d55a492
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -172,6 +172,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- run: corepack enable
|
- run: corepack enable
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
@ -18,7 +18,7 @@ async function main () {
|
|||||||
|
|
||||||
const config = await loadChangelogConfig(process.cwd())
|
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 commits = await getGitDiff(latestTag)
|
||||||
const bumpType = determineSemverChange(parseCommits(commits, config), config)
|
const bumpType = determineSemverChange(parseCommits(commits, config), config)
|
||||||
|
Loading…
Reference in New Issue
Block a user