Files
ComfyUI_frontend/.github/workflows/release-pypi-dev.yaml
Christian Byrne 9596a450df fix(ci): remove pnpm version: 10 to resolve packageManager conflict on core/1.42 (#11228)
The version-bump workflow injects `packageManager: pnpm@10.33.0` into
`package.json` (PR #10972), which conflicts with the explicit `version:
10` in `pnpm/action-setup`. The newer action rejects having both
specified.

Upgrades all 16 workflow/action files from `pnpm/action-setup@v4.2.0` to
`v4.4.0` and removes the `version: 10` input so pnpm version resolves
from the `packageManager` field instead.

This unblocks CI on the `1.42.11` version-bump PR (#11227) which is
needed for the patch release.

┆Issue is synchronized with this [Notion
page](https://app.notion.com/p/PR-11228-fix-ci-remove-pnpm-version-10-to-resolve-packageManager-conflict-on-core-1-42-3426d73d3650810fabbdfbec06df5b4a)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
2026-04-13 22:39:31 -07:00

78 lines
2.3 KiB
YAML

name: Release PyPI Dev
on:
workflow_dispatch:
inputs:
devVersion:
description: 'Dev version'
required: true
type: number
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.current_version.outputs.version }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Get current version
id: current_version
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Build project
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ENABLE_MINIFY: 'true'
USE_PROD_CONFIG: 'true'
run: |
pnpm install --frozen-lockfile
pnpm build
pnpm zipdist
- name: Upload dist artifact
uses: actions/upload-artifact@v6
with:
name: dist-files
path: |
dist/
dist.zip
publish_pypi:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Download dist artifact
uses: actions/download-artifact@v7
with:
name: dist-files
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install build dependencies
run: python -m pip install build
- name: Setup pypi package
run: |
mkdir -p comfyui_frontend_package/comfyui_frontend_package/static/
cp -r dist/* comfyui_frontend_package/comfyui_frontend_package/static/
- name: Build pypi package
run: python -m build
working-directory: comfyui_frontend_package
env:
COMFYUI_FRONTEND_VERSION: ${{ format('{0}.dev{1}', needs.build.outputs.version, inputs.devVersion) }}
- name: Publish pypi package
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
password: ${{ secrets.PYPI_TOKEN }}
packages-dir: comfyui_frontend_package/dist