Skip to content

Commit 654f411

Browse files
authored
feat(release): isolate v2 stable publishing (#48546)
1 parent 68b862d commit 654f411

47 files changed

Lines changed: 171 additions & 140 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ on:
2525
required: false
2626
type: string
2727

28-
concurrency: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.version || inputs.bump }}
28+
concurrency: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref_name == 'v2' && (inputs.version || inputs.bump) && 'release') || inputs.version || inputs.bump }}
2929

3030
permissions:
3131
id-token: write
3232
contents: write
3333
packages: write
3434

3535
env:
36-
OPENCODE_CHANNEL: ${{ (github.ref_name == 'v2' && 'dev') || '' }}
36+
OPENCODE_CHANNEL: ${{ (github.ref_name == 'v2' && !inputs.bump && !inputs.version && 'dev') || '' }}
3737

3838
jobs:
3939
version:
@@ -378,7 +378,7 @@ jobs:
378378
needs:
379379
- version
380380
- sign-cli-macos
381-
if: github.repository == 'anomalyco/opencode' && github.ref_name != 'v2'
381+
if: github.repository == 'anomalyco/opencode' && (github.ref_name != 'v2' || needs.version.outputs.release != '')
382382
continue-on-error: false
383383
env:
384384
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}

‎bun.lock‎

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "opencode",
44
"description": "AI-powered development tool",
5-
"version": "0.0.0",
5+
"version": "2.0.0",
66
"private": true,
77
"type": "module",
88
"packageManager": "bun@1.4.2",

‎packages/ai/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
3-
"version": "1.17.20",
3+
"version": "2.0.0",
44
"name": "@opencode/ai",
55
"type": "module",
66
"license": "MIT",

‎packages/app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode/app",
3-
"version": "1.18.15",
3+
"version": "2.0.0",
44
"description": "",
55
"type": "module",
66
"exports": {

‎packages/cli/Dockerfile‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM alpine AS base
2+
3+
ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
4+
ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=${BUN_RUNTIME_TRANSPILER_CACHE_PATH}
5+
RUN apk add --no-cache libgcc libstdc++ ripgrep
6+
7+
FROM base AS build-amd64
8+
COPY dist/opencode-linux-x64-baseline-musl/bin/opencode /usr/local/bin/opencode
9+
10+
FROM base AS build-arm64
11+
COPY dist/opencode-linux-arm64-musl/bin/opencode /usr/local/bin/opencode
12+
13+
ARG TARGETARCH
14+
FROM build-${TARGETARCH}
15+
RUN opencode --version
16+
ENTRYPOINT ["opencode"]

‎packages/cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@opencode/cli",
4-
"version": "1.18.4",
4+
"version": "2.0.0",
55
"type": "module",
66
"license": "MIT",
77
"bin": {

0 commit comments

Comments
 (0)