This commit is contained in:
Dax Raad
2025-06-12 13:04:01 -04:00
parent 41c54f629c
commit f0dbe40522

42
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: publish
on:
workflow_dispatch:
push:
tags:
- "*"
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
packages: write
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.16
- run: |
bun install
./script/publish.ts
working-directory: ./packages/opencode
env:
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}