summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-11-07 15:58:51 -0500
committerDax Raad <[email protected]>2025-11-07 15:58:51 -0500
commit58bbe9e689d4ae99e18cea4e0bdd40599643c427 (patch)
treeb4afd3d6bdc4f92499bd490820d84f5454982dc5
parentb5a035ceab79ce55f565823910d7c561f6ab7920 (diff)
downloadopencode-58bbe9e689d4ae99e18cea4e0bdd40599643c427.tar.gz
opencode-58bbe9e689d4ae99e18cea4e0bdd40599643c427.zip
ci: add optional version parameter to publish workflow
Allows overriding the version when publishing releases instead of only using semantic bumping. This gives maintainers more control over release versioning for special cases or hotfixes.
-rw-r--r--.github/workflows/publish.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index df1a36f77..a339c7dab 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -12,6 +12,10 @@ on:
- major
- minor
- patch
+ version:
+ description: "Override version (optional)"
+ required: false
+ type: string
concurrency: ${{ github.workflow }}-${{ github.ref }}
@@ -62,6 +66,7 @@ jobs:
./script/publish.ts
env:
OPENCODE_BUMP: ${{ inputs.bump }}
+ OPENCODE_VERSION: ${{ inputs.version }}
OPENCODE_CHANNEL: latest
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}