ci: use `GITHUB_REF_NAME` to get branch for release

This commit is contained in:
Daniel Roe 2023-09-04 09:33:27 +01:00
parent 3c1d027977
commit d49ea58de0
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { inc } from 'semver'
import { generateMarkDown, loadChangelogConfig } from 'changelogen'
import { determineBumpType, getLatestCommits, loadWorkspace } from './_utils'
const releaseBranch = process.env.BRANCH || 'main'
const releaseBranch = process.env.GITHUB_REF_NAME || 'main'
async function main () {
const workspace = await loadWorkspace(process.cwd())