mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
ci: use GITHUB_REF_NAME
to get branch for release
This commit is contained in:
parent
3c1d027977
commit
d49ea58de0
@ -4,7 +4,7 @@ import { inc } from 'semver'
|
|||||||
import { generateMarkDown, loadChangelogConfig } from 'changelogen'
|
import { generateMarkDown, loadChangelogConfig } from 'changelogen'
|
||||||
import { determineBumpType, getLatestCommits, loadWorkspace } from './_utils'
|
import { determineBumpType, getLatestCommits, loadWorkspace } from './_utils'
|
||||||
|
|
||||||
const releaseBranch = process.env.BRANCH || 'main'
|
const releaseBranch = process.env.GITHUB_REF_NAME || 'main'
|
||||||
|
|
||||||
async function main () {
|
async function main () {
|
||||||
const workspace = await loadWorkspace(process.cwd())
|
const workspace = await loadWorkspace(process.cwd())
|
||||||
|
Loading…
Reference in New Issue
Block a user