mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 13:05:14 +03:00
chore: publish v1 from the v1 branch
This commit is contained in:
@@ -3,7 +3,7 @@ name: generate
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- v1
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: nix-eval
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev]
|
||||
branches: [v1]
|
||||
pull_request:
|
||||
branches: [dev]
|
||||
branches: [v1]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
|
||||
@@ -6,7 +6,7 @@ permissions:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [dev, beta]
|
||||
branches: [v1, beta]
|
||||
paths:
|
||||
- "bun.lock"
|
||||
- "package.json"
|
||||
|
||||
@@ -5,7 +5,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- ci
|
||||
- dev
|
||||
- v1
|
||||
- beta
|
||||
- fix/npm-native-binary-install
|
||||
- snapshot-*
|
||||
@@ -31,6 +31,10 @@ permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
env:
|
||||
# V1 previews keep the dev channel so existing opencode-ai@dev installs keep upgrading and their data path.
|
||||
OPENCODE_CHANNEL: ${{ (github.ref_name == 'v1' && !inputs.bump && !inputs.version && 'dev') || '' }}
|
||||
|
||||
jobs:
|
||||
version:
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
|
||||
@@ -3,14 +3,14 @@ name: test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- v1
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
# Keep every run on dev so cancelled checks do not pollute the default branch
|
||||
# Keep every run on v1 so cancelled checks do not pollute the release branch
|
||||
# commit history. PRs and other branches still share a group and cancel stale runs.
|
||||
group: ${{ case(github.ref == 'refs/heads/dev', format('{0}-{1}', github.workflow, github.run_id), format('{0}-{1}', github.workflow, github.event.pull_request.number || github.ref)) }}
|
||||
group: ${{ case(github.ref == 'refs/heads/v1', format('{0}-{1}', github.workflow, github.run_id), format('{0}-{1}', github.workflow, github.event.pull_request.number || github.ref)) }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: typecheck
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev]
|
||||
branches: [v1]
|
||||
pull_request:
|
||||
branches: [dev]
|
||||
branches: [v1]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
+2
-2
@@ -59,10 +59,10 @@ if (Script.release && !Script.preview) {
|
||||
await $`git push origin refs/tags/${tag} --force-with-lease --no-verify`
|
||||
await new Promise((resolve) => setTimeout(resolve, 5_000))
|
||||
await $`git fetch origin`
|
||||
await $`git checkout -B dev origin/dev`
|
||||
await $`git checkout -B v1 origin/v1`
|
||||
await prepareReleaseFiles()
|
||||
await $`git commit -am "sync release versions for ${tag}"`
|
||||
await $`git push origin HEAD:dev --no-verify`
|
||||
await $`git push origin HEAD:v1 --no-verify`
|
||||
}
|
||||
|
||||
if (Script.release) {
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
BUMP_TYPE=${1:-patch}
|
||||
|
||||
gh workflow run publish.yml -f bump="$BUMP_TYPE"
|
||||
gh workflow run publish.yml --ref v1 -f bump="$BUMP_TYPE"
|
||||
|
||||
Reference in New Issue
Block a user