* Checkout new branch on release script run

* 0.8.16

* nit
This commit is contained in:
Chenlei Hu
2024-11-03 16:26:07 -05:00
committed by GitHub
parent 1b110a62cf
commit 30642850cb
3 changed files with 8 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@comfyorg/litegraph",
"version": "0.8.15",
"version": "0.8.16",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@comfyorg/litegraph",
"version": "0.8.15",
"version": "0.8.16",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.12",

View File

@@ -1,6 +1,6 @@
{
"name": "@comfyorg/litegraph",
"version": "0.8.15",
"version": "0.8.16",
"type": "module",
"description": "A graph node editor similar to PD or UDK Blueprints. It works in an HTML5 Canvas and allows to export graphs to be included in applications.",
"main": "./dist/litegraph.umd.js",

View File

@@ -2,6 +2,11 @@ import { execSync } from 'child_process'
import { readFileSync } from 'fs'
try {
// Create a new branch with version-bump prefix
console.log('Creating new branch...')
const branchName = `version-bump-${new Date().toISOString().split('T')[0]}`
execSync(`git checkout -b ${branchName} -t origin/master`, { stdio: 'inherit' })
// Run npm version patch and capture the output
console.log('Bumping version...')
execSync('npm version patch', { stdio: 'inherit' })