summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
committerDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
commitc6e830c954418808dc39284a1c073aa63a6d4d21 (patch)
tree9c3052e0509115188768a553c0be5a8441ebdd96 /.github/workflows
parent7088bfabd773e2f076aab1c9d2468c04feff0570 (diff)
parentfc78c28df64383a9f99382093f61fc28caf6569f (diff)
downloadopencode-c6e830c954418808dc39284a1c073aa63a6d4d21.tar.gz
opencode-c6e830c954418808dc39284a1c073aa63a6d4d21.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/auto-label-tui.yml4
-rw-r--r--.github/workflows/publish.yml5
-rw-r--r--.github/workflows/sync-zed-extension.yml34
3 files changed, 41 insertions, 2 deletions
diff --git a/.github/workflows/auto-label-tui.yml b/.github/workflows/auto-label-tui.yml
index 834562e17..8f2d80b59 100644
--- a/.github/workflows/auto-label-tui.yml
+++ b/.github/workflows/auto-label-tui.yml
@@ -20,8 +20,8 @@ jobs:
const title = issue.title;
const description = issue.body || '';
- // Check for web/desktop keywords
- const webPattern = /\b(web|desktop)\b/i;
+ // Check for "opencode web" keyword
+ const webPattern = /(opencode web)/i;
const isWebRelated = webPattern.test(title) || webPattern.test(description);
// Check for version patterns like v1.0.x or 1.0.x
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 }}
diff --git a/.github/workflows/sync-zed-extension.yml b/.github/workflows/sync-zed-extension.yml
new file mode 100644
index 000000000..c9dea7bb7
--- /dev/null
+++ b/.github/workflows/sync-zed-extension.yml
@@ -0,0 +1,34 @@
+name: "sync-zed-extension"
+
+on:
+ workflow_dispatch:
+ release:
+ types: [published]
+
+jobs:
+ zed:
+ name: Release Zed Extension
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - uses: ./.github/actions/setup-bun
+
+ - name: Get version tag
+ id: get_tag
+ run: |
+ if [ "${{ github.event_name }}" = "release" ]; then
+ TAG="${{ github.event.release.tag_name }}"
+ else
+ TAG=$(git tag --list 'v[0-9]*.*' --sort=-version:refname | head -n 1)
+ fi
+ echo "tag=${TAG}" >> $GITHUB_OUTPUT
+ echo "Using tag: ${TAG}"
+
+ - name: Sync Zed extension
+ run: |
+ ./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }}
+ env:
+ GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}