From 30642850cb152fe9ac8b09b4d065cea17e550cf9 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sun, 3 Nov 2024 16:26:07 -0500 Subject: [PATCH] 0.8.16 (#263) * Checkout new branch on release script run * 0.8.16 * nit --- package-lock.json | 4 ++-- package.json | 2 +- scripts/release.js | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d0179a9c3..c3bd719f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index b6fd804ea..1f05e18dc 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/release.js b/scripts/release.js index 0358eb218..c2fb4176d 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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' })