Skip to content

Commit

Permalink
Improve variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Apr 7, 2024
1 parent 24ed3da commit 9839b5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .cliff/build-changelogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const { execSync } = require('child_process')
const packageJson = require('../package.json')

const nextVersion = packageJson.version
const cliffChangelogCmd = `git-cliff --config .cliff/cliff-changelog-md.toml -o CHANGELOG.md --tag v${nextVersion}`
const cliffReadmeCmd = `git-cliff --config .cliff/cliff-readme-txt.toml -o readme.txt --tag v${nextVersion}`
const changelogMdCmd = `git-cliff --config .cliff/cliff-changelog-md.toml -o CHANGELOG.md --tag v${nextVersion}`
const readmeTxtCmd = `git-cliff --config .cliff/cliff-readme-txt.toml -o readme.txt --tag v${nextVersion}`

try {
execSync(cliffChangelogCmd, { stdio: 'inherit' })
execSync(cliffReadmeCmd, { stdio: 'inherit' })
execSync(changelogMdCmd, { stdio: 'inherit' })
execSync(readmeTxtCmd, { stdio: 'inherit' })
} catch (error) {
console.error('Failed to build changelogs:', error)
process.exit(1)
Expand Down

0 comments on commit 9839b5d

Please sign in to comment.