mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-01 04:46:43 +08:00
feat(cli): publish CLI as npm prerelease when pre_release flag is set
When the publish workflow is dispatched with pre_release=true, the CLI and SDK packages are now published to npm under the "rc" dist-tag with a semver prerelease version (e.g. 7.1.24-rc.202604081425) instead of going to the "latest" tag as a stable release. This ensures that pre-release VS Code extension builds ship with a matching pre-release CLI on npm, so users on the stable channel are never affected by pre-release publishes.
This commit is contained in:
@@ -23,7 +23,7 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
pre_release:
|
||||
description: "Publish as pre-release (VS Code marketplace)"
|
||||
description: "Publish as pre-release (VS Code marketplace + npm rc channel)"
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
@@ -58,6 +58,7 @@ jobs:
|
||||
GH_REPO: ${{ github.repository }}
|
||||
KILO_BUMP: ${{ inputs.bump }}
|
||||
KILO_VERSION: ${{ inputs.version }}
|
||||
KILO_PRE_RELEASE: ${{ inputs.pre_release }}
|
||||
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
|
||||
KILO_ORG_ID: ${{ secrets.KILO_ORG_ID }}
|
||||
outputs:
|
||||
@@ -83,6 +84,7 @@ jobs:
|
||||
env:
|
||||
KILO_VERSION: ${{ needs.version.outputs.version }}
|
||||
KILO_RELEASE: ${{ needs.version.outputs.release }}
|
||||
KILO_PRE_RELEASE: ${{ inputs.pre_release }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user