Skip to content

Commit

Permalink
ci: use GITHUB_REF_NAME to get branch for release
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 4, 2023
1 parent 3c1d027 commit d49ea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-changelog.ts
Expand Up @@ -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())
Expand Down

0 comments on commit d49ea58

Please sign in to comment.