Skip to content

Commit e11f0ae

Browse files
edyedy
authored andcommitted
fix(ci): correct test sort order and simplify release workflow
- Fix location-layer test: delegate_task sorts before edit alphabetically - Release workflow: only trigger on tag pushes, remove branch conditionals
1 parent 9d6addc commit e11f0ae

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: release
33
on:
44
push:
55
tags: ["v*"]
6-
branches: ["dev", "main"]
76
workflow_dispatch:
87

98
permissions:
@@ -24,7 +23,7 @@ jobs:
2423

2524
- name: Build macOS Apple Silicon CLI
2625
run: |
27-
OPENCODE_CHANNEL=latest OPENCODE_VERSION="${GITHUB_REF#refs/tags/v}" bun run --cwd packages/opencode script/build.ts --skip-embed-web-ui --skip-install
26+
OPENCODE_CHANNEL=latest OPENCODE_VERSION="${GITHUB_REF_NAME#v}" bun run --cwd packages/opencode script/build.ts --skip-embed-web-ui --skip-install
2827
2928
- name: Package Assets
3029
run: |
@@ -35,12 +34,10 @@ jobs:
3534
cp script/install.sh release-assets/
3635
ls -la release-assets/
3736
38-
- name: Create or Update Release
37+
- name: Create Release
3938
uses: softprops/action-gh-release@v2
4039
with:
41-
tag_name: ${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
42-
name: ${{ github.ref_type == 'tag' && github.ref_name || 'Latest macOS Build' }}
43-
prerelease: ${{ github.ref_type != 'tag' }}
40+
name: ${{ github.ref_name }}
4441
files: |
4542
release-assets/opencode-darwin-arm64.tar.gz
4643
release-assets/install.sh

packages/core/test/location-layer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ describe("LocationServiceMap", () => {
125125
"application_context",
126126
"apply_patch",
127127
"bash",
128-
"edit",
129128
"delegate_task",
129+
"edit",
130130
"glob",
131131
"grep",
132132
"question",

0 commit comments

Comments
 (0)