summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-22 01:45:23 -0400
committerDax Raad <[email protected]>2025-09-22 01:45:23 -0400
commit288c977596ed3f6eaf2149fdcabffa415c8e5e50 (patch)
treea01325a1a0b4889eb66e1e4e937d76d6a3ddde16 /.github/workflows
parent6b799b304c2bb07e20ee0746d9ea8ada0f3c1571 (diff)
downloadopencode-288c977596ed3f6eaf2149fdcabffa415c8e5e50.tar.gz
opencode-288c977596ed3f6eaf2149fdcabffa415c8e5e50.zip
ci: snapshot builds
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/snapshot.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml
new file mode 100644
index 000000000..0cc6faf7f
--- /dev/null
+++ b/.github/workflows/snapshot.yml
@@ -0,0 +1,50 @@
+name: snapshot
+
+on:
+ push:
+ branches:
+ - dev
+ - opentui
+
+concurrency: ${{ github.workflow }}-${{ github.ref }}
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+
+ - run: git fetch --force --tags
+
+ - uses: actions/setup-go@v5
+ with:
+ go-version: ">=1.24.0"
+ cache: true
+ cache-dependency-path: go.sum
+
+ - uses: oven-sh/setup-bun@v2
+ with:
+ bun-version: 1.2.21
+
+ - name: Cache ~/.bun
+ id: cache-bun
+ uses: actions/cache@v3
+ with:
+ path: ~/.bun
+ key: ${{ runner.os }}-bun-1-2-21-${{ hashFiles('bun.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-bun-1-2-21-
+
+ - name: Install dependencies
+ run: bun install
+
+ - name: Publish
+ run: |
+ ./packages/opencode/script/publish.ts
+ env:
+ OPENCODE_SNAPSHOT: true
+ OPENCODE_TAG: ${{ github.ref_name }}
+ GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
+ NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}