[chore] Remove litegraph GitHub workflows

These workflows were for managing litegraph as a standalone npm package.
No longer needed since litegraph is now a git subtree within the frontend.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Benjamin Lu
2025-08-04 05:00:27 -04:00
parent 9862b68799
commit dd0e8a6c6f
5 changed files with 0 additions and 334 deletions

View File

@@ -1,62 +0,0 @@
name: Create Dev Release
description: Create a nightly-style npm package for a development / experimental branch. Do not use "latest" tag. This will not have a GitHub release / tag by default.
on:
workflow_dispatch:
inputs:
tag:
description: "npm tag (`ni pacakge@tag`)"
required: true
default: "subgraph"
gh-release:
description: "Draft a GitHub release"
type: boolean
required: false
default: false
jobs:
create-release:
runs-on: ubuntu-latest
if: inputs.gh-release == true
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Get current version
id: current_version
run: |
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
- name: Create release
id: create_release
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.current_version.outputs.version }}
draft: true
prerelease: true
generate_release_notes: true
make_latest: "false"
publish:
runs-on: ubuntu-latest
if: inputs.tag != 'latest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- run: npm publish --access public --tag ${{ inputs.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -1,62 +0,0 @@
name: Create GitHub Release
description: Automatically creates a release when a PR is merged that both that changes package.json and has the Release label.
on:
pull_request:
types: [closed]
branches:
- main
- master
paths:
- "package.json"
jobs:
create-release:
runs-on: ubuntu-latest
if: >
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'Release')
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Get current version
id: current_version
run: |
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
- name: Create release
id: create_release
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.current_version.outputs.version }}
draft: false
prerelease: false
generate_release_notes: true
make_latest: "true"
publish:
runs-on: ubuntu-latest
if: >
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'Release')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -1,60 +0,0 @@
name: Release a New Version
description: Creates a PR to increment the version. When the PR is merged, it will automatically create a release.
on:
workflow_dispatch:
inputs:
version_type:
description: Version increment type
required: true
default: patch
type: choice
options: [patch, minor, major, prepatch, preminor, premajor, prerelease]
pre_release:
description: Pre-release ID (suffix)
required: false
default: ""
type: string
jobs:
bump-version:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "npm"
- name: Bump version
id: bump-version
run: |
npm version ${{ github.event.inputs.version_type }} --preid ${{ github.event.inputs.pre_release }} --no-git-tag-version
NEW_VERSION=$(node -p "require('./package.json').version")
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Format PR string
id: capitalised
run: |
CAPITALISED_TYPE=${{ github.event.inputs.version_type }}
echo "capitalised=${CAPITALISED_TYPE@u}" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
with:
token: ${{ secrets.PR_GH_TOKEN }}
commit-message: "[Release] Increment version to ${{ steps.bump-version.outputs.NEW_VERSION }}"
title: ${{ steps.bump-version.outputs.NEW_VERSION }}
body: |
${{ steps.capitalised.outputs.capitalised }} version increment to ${{ steps.bump-version.outputs.NEW_VERSION }}
branch: version-bump-${{ steps.bump-version.outputs.NEW_VERSION }}
base: master
labels: |
Release

View File

@@ -1,115 +0,0 @@
# This action should be kept in sync with
# https://github.com/Comfy-Org/ComfyUI_frontend/blob/main/.github/workflows/test-ui.yaml
name: Test ComfyUI Frontend
on:
workflow_dispatch:
inputs:
frontend-branch:
description: "Frontend branch"
required: true
default: "main"
push:
branches: [main, master]
paths-ignore:
- ".cursor/**"
- ".husky/**"
- ".vscode/**"
- ".github/ISSUE_TEMPLATE/**"
- "test/**"
pull_request:
branches: [main, master]
paths-ignore:
- ".cursor/**"
- ".husky/**"
- ".vscode/**"
- ".github/ISSUE_TEMPLATE/**"
- "test/**"
jobs:
test-comfyui-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout litegraph
uses: actions/checkout@v4
with:
path: "litegraph"
- name: Checkout ComfyUI
uses: actions/checkout@v4
with:
repository: "comfyanonymous/ComfyUI"
path: "ComfyUI"
ref: master
- name: Checkout ComfyUI_frontend
uses: actions/checkout@v4
with:
repository: "Comfy-Org/ComfyUI_frontend"
path: "ComfyUI_frontend"
ref: ${{ inputs.frontend-branch }}
- name: Checkout ComfyUI_devtools
uses: actions/checkout@v4
with:
repository: "Comfy-Org/ComfyUI_devtools"
path: "ComfyUI/custom_nodes/ComfyUI_devtools"
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
pip install wait-for-it
working-directory: ComfyUI
- name: Build litegraph
run: |
npm ci
npm run build
working-directory: litegraph
- name: Install updated litegraph in ComfyUI_frontend
run: |
npm ci
npm install ../litegraph
npm run build
working-directory: ComfyUI_frontend
- name: Start ComfyUI server
run: |
python main.py --cpu --multi-user --front-end-root ../ComfyUI_frontend/dist &
wait-for-it --service 127.0.0.1:8188 -t 600
working-directory: ComfyUI
- name: Run UI tests
run: |
npm run test:component
npm run test:unit
working-directory: ComfyUI_frontend
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
working-directory: ComfyUI_frontend
- name: Run Playwright tests (chromium)
run: npx playwright test --project=chromium
working-directory: ComfyUI_frontend
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: ComfyUI_frontend/playwright-report/
retention-days: 30

View File

@@ -1,35 +0,0 @@
name: Unit Test, Lint, and Format
on:
push:
branches: [main, master, "dev*"]
pull_request:
branches: [main, master, "dev*"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Build
run: |
npm ci
npm run build
- name: Run lint
run: |
npm run lint:ci
- name: Run format
run: |
npm run format
- name: Run vitest tests
run: |
npm test -- --reporter=verbose