mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
ci: use changelogen utility to get current branch
This commit is contained in:
parent
d28189eb58
commit
7431e22588
@ -1,15 +1,13 @@
|
||||
import { execSync } from 'node:child_process'
|
||||
import { $fetch } from 'ofetch'
|
||||
import { inc } from 'semver'
|
||||
import { generateMarkDown, loadChangelogConfig } from 'changelogen'
|
||||
import { generateMarkDown, getCurrentGitBranch, loadChangelogConfig } from 'changelogen'
|
||||
import { determineBumpType, getLatestCommits, loadWorkspace } from './_utils'
|
||||
|
||||
const releaseBranch = process.env.GITHUB_REF_NAME || 'main'
|
||||
|
||||
async function main () {
|
||||
const releaseBranch = await getCurrentGitBranch()
|
||||
const workspace = await loadWorkspace(process.cwd())
|
||||
const config = await loadChangelogConfig(process.cwd(), {
|
||||
})
|
||||
const config = await loadChangelogConfig(process.cwd(), {})
|
||||
|
||||
const commits = await getLatestCommits().then(commits => commits.filter(
|
||||
c => config.types[c.type] && !(c.type === 'chore' && c.scope === 'deps' && !c.isBreaking)
|
||||
|
Loading…
Reference in New Issue
Block a user