mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
* Install vite-plugin-dts * Explicitly type workflowStore * Working rollup * Hide diff type * Inline primevue toast mesage types * Add prepare-types script to generate package.json for type package * Add global declaration * Add publish types Github action * Update litegraph * Add @comfyorg to package name
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
name: Create Release Draft
|
|
|
|
on:
|
|
pull_request:
|
|
types: [closed]
|
|
branches:
|
|
- main
|
|
- master
|
|
paths:
|
|
- "package.json"
|
|
|
|
jobs:
|
|
draft_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: echo ::set-output name=version::$(node -p "require('./package.json').version")
|
|
- name: Build project
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
npm run zipdist
|
|
- name: Create release
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
files: |
|
|
dist.zip
|
|
tag_name: v${{ steps.current_version.outputs.version }}
|
|
draft: true
|
|
prerelease: false
|
|
make_latest: "true"
|
|
publish_types:
|
|
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:types
|
|
- name: Publish package
|
|
run: npm publish --access public
|
|
working-directory: ./dist
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|