Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changesets

Add a changeset to every pull request that changes user-facing behavior:

```bash
bun run changeset
```

Choose `patch`, `minor`, or `major` and commit the generated Markdown file with the change. Documentation, test-only, and internal CI changes can use an empty changeset:

```bash
bun run changeset --empty
```

The release workflow creates a version pull request. Merging that pull request updates `package.json` and `CHANGELOG.md`, then creates and pushes a Git tag. This repository never publishes to npm.
5 changes: 5 additions & 0 deletions .changeset/bright-dashboards-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"opencode-dashboard": minor
---

Add the OpenCode session dashboard and native `/dashboard` TUI command.
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": {
"version": true,
"tag": true
}
}
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write

jobs:
release:
name: Version or tag release
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.0

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Create or update version pull request
id: changesets
uses: changesets/action@v1
with:
version: bun run version
commit: "chore: version package"
title: "chore: version package"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create and push Git tag
if: steps.changesets.outputs.hasChangesets == 'false'
run: |
bun run release:tag
git push origin --tags
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,17 @@ bun run typecheck
bun test
bun run build
```

## Releases

Add a changeset to each pull request with a user-facing change:

```bash
bun run changeset
```

After changesets reach `main`, the release workflow creates or updates a version pull request. Merging the version pull request updates `package.json` and `CHANGELOG.md`, then creates and pushes a Git tag such as `v0.1.0`.

This package is private and the release workflow has no npm publish command or npm token. Releases exist only as versions, changelog entries, and Git tags.

GitHub repository settings must allow GitHub Actions to create pull requests under **Settings > Actions > General > Workflow permissions**.
77 changes: 74 additions & 3 deletions bun.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "opencode-dashboard",
"version": "0.0.1",
"private": true,
"type": "module",
"main": "./dist/server/index.js",
"exports": {
Expand All @@ -17,6 +18,9 @@
"scripts": {
"dev": "bun --hot src/collector/index.ts",
"test": "bun test",
"changeset": "changeset",
"version": "changeset version",
"release:tag": "changeset git-tag",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"clean": "bun -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
Expand All @@ -35,6 +39,7 @@
"zod": "^3"
},
"devDependencies": {
"@changesets/cli": "^3.0.2",
"@eslint/js": "^10.0.1",
"@tanstack/react-query-devtools": "^5",
"@types/bun": "^1",
Expand Down
Loading