fix(release): omit node CLI from latest (#48568)

This commit is contained in:
Dax
2026-09-11 19:10:23 -04:00
committed by GitHub
parent 4994a7d694
commit 770420bdad
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -199,7 +199,7 @@ jobs:
needs: version
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
if: github.repository == 'anomalyco/opencode'
if: github.repository == 'anomalyco/opencode' && !(github.ref_name == 'v2' && (inputs.bump || inputs.version))
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
@@ -221,7 +221,7 @@ jobs:
needs:
- version
- build-node-app-archive
if: github.repository == 'anomalyco/opencode'
if: github.repository == 'anomalyco/opencode' && !(github.ref_name == 'v2' && (inputs.bump || inputs.version))
strategy:
fail-fast: false
matrix:
+1 -1
View File
@@ -136,7 +136,7 @@ await publishDistribution({
packagePrefix: "@opencode/cli-",
artifact: "cli",
})
if (existsSync(path.join(root, "node"))) {
if (Script.channel !== "latest" && existsSync(path.join(root, "node"))) {
await publishDistribution({
root: path.join(root, "node"),
name: "@opencode/cli-node",