[CI] Add pre-release options (#722)

Adds release steps to README.
This commit is contained in:
filtered
2025-03-08 16:20:21 +11:00
committed by GitHub
parent 8153e65b3b
commit 7119480f84
2 changed files with 25 additions and 1 deletions

View File

@@ -9,7 +9,12 @@ on:
required: true
default: patch
type: choice
options: [patch, minor, major]
options: [patch, minor, major, prepatch, preminor, premajor, prerelease]
pre_release:
description: Pre-release ID (suffix)
required: false
default: ""
type: string
jobs:
bump-version:

View File

@@ -138,6 +138,25 @@ graph.start()
Please [open an issue](https://github.com/Comfy-Org/litegraph.js/issues/) on the GitHub repo.
# Development
Litegraph has no runtime dependencies. The build tooling has been tested on Node.JS 20.18.x
## Releasing
Use GitHub actions to release normal versions.
1. Run the `Release a New Version` action, selecting the version incrment type
1. Merge the resultion PR
1. A GitHub release is automatically published on merge
### Pre-release
The action directly translates `Version increment type` to the npm version command. `Pre-release ID (suffix)` is the option for the `--preid` argument.
e.g. Use `prerelease` increment type to automatically bump the patch version and create a pre-release version. Subsequent runs of prerelease will update the prerelease version only.
Use `patch` when ready to remove the pre-release suffix.
## Contributors
You can find the [current list of contributors](https://github.com/Comfy-Org/litegraph.js/graphs/contributors) on GitHub.