17 lines
539 B
JavaScript
17 lines
539 B
JavaScript
/* eslint-disable no-template-curly-in-string */
|
|
import { execSync } from "node:child_process"
|
|
|
|
import { defineConfig } from "nbump"
|
|
|
|
const currentBranch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim()
|
|
|
|
export default defineConfig({
|
|
before: ["git pull --rebase"],
|
|
after: [
|
|
`gh pr create --title 'chore: Hotfix to release v\${NEW_VERSION}' --body 'v\${NEW_VERSION}' --base main --head ${currentBranch}`,
|
|
],
|
|
commit_message: "chore(release): hotfix to release v${NEW_VERSION}",
|
|
tag: false,
|
|
changelog: true,
|
|
})
|