From dd0e8a6c6f11c226b5b9956de1f482af27afe196 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Mon, 4 Aug 2025 05:00:27 -0400 Subject: [PATCH] [chore] Remove litegraph GitHub workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../.github/workflows/dev-release.yml | 62 ---------- .../.github/workflows/github-release.yml | 62 ---------- .../.github/workflows/release-version.yml | 60 --------- .../workflows/test-comfyui-frontend.yml | 115 ------------------ .../.github/workflows/test-lint-format.yml | 35 ------ 5 files changed, 334 deletions(-) delete mode 100644 src/lib/litegraph/.github/workflows/dev-release.yml delete mode 100644 src/lib/litegraph/.github/workflows/github-release.yml delete mode 100644 src/lib/litegraph/.github/workflows/release-version.yml delete mode 100644 src/lib/litegraph/.github/workflows/test-comfyui-frontend.yml delete mode 100644 src/lib/litegraph/.github/workflows/test-lint-format.yml diff --git a/src/lib/litegraph/.github/workflows/dev-release.yml b/src/lib/litegraph/.github/workflows/dev-release.yml deleted file mode 100644 index d947abdfb3..0000000000 --- a/src/lib/litegraph/.github/workflows/dev-release.yml +++ /dev/null @@ -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 }} diff --git a/src/lib/litegraph/.github/workflows/github-release.yml b/src/lib/litegraph/.github/workflows/github-release.yml deleted file mode 100644 index 22c1bcb7ea..0000000000 --- a/src/lib/litegraph/.github/workflows/github-release.yml +++ /dev/null @@ -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 }} diff --git a/src/lib/litegraph/.github/workflows/release-version.yml b/src/lib/litegraph/.github/workflows/release-version.yml deleted file mode 100644 index 3638e17246..0000000000 --- a/src/lib/litegraph/.github/workflows/release-version.yml +++ /dev/null @@ -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 diff --git a/src/lib/litegraph/.github/workflows/test-comfyui-frontend.yml b/src/lib/litegraph/.github/workflows/test-comfyui-frontend.yml deleted file mode 100644 index d8f416fb6b..0000000000 --- a/src/lib/litegraph/.github/workflows/test-comfyui-frontend.yml +++ /dev/null @@ -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 diff --git a/src/lib/litegraph/.github/workflows/test-lint-format.yml b/src/lib/litegraph/.github/workflows/test-lint-format.yml deleted file mode 100644 index 355639420e..0000000000 --- a/src/lib/litegraph/.github/workflows/test-lint-format.yml +++ /dev/null @@ -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