mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Create unique branch name [skip ci] (#266)
This commit is contained in:
@@ -4,7 +4,9 @@ import { readFileSync } from 'fs'
|
|||||||
try {
|
try {
|
||||||
// Create a new branch with version-bump prefix
|
// Create a new branch with version-bump prefix
|
||||||
console.log('Creating new branch...')
|
console.log('Creating new branch...')
|
||||||
const branchName = `version-bump-${new Date().toISOString().split('T')[0]}`
|
const date = new Date().toISOString().split('T')[0]
|
||||||
|
const timestamp = new Date().getTime()
|
||||||
|
const branchName = `version-bump-${date}-${timestamp}`
|
||||||
execSync(`git checkout -b ${branchName} -t origin/master`, { stdio: 'inherit' })
|
execSync(`git checkout -b ${branchName} -t origin/master`, { stdio: 'inherit' })
|
||||||
|
|
||||||
// Run npm version patch and capture the output
|
// Run npm version patch and capture the output
|
||||||
|
|||||||
Reference in New Issue
Block a user