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
9 changes: 9 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changesets

This folder is used by [Changesets](https://github.com/changesets/changesets) to track version bumps.

To add a changeset, run:

```sh
bunx changeset
```
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/five-falcons-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mcmunder/opencode-git-memory": patch
---

Publish initial version of the package
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ on:
push:
branches: [main]

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

permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
# Skip release on CI-only commits (e.g. changelog updates from semantic-release)
if: "!contains(github.event.head_commit.message, '[skip ci]')"

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- uses: oven-sh/setup-bun@v2

Expand All @@ -30,11 +26,13 @@ jobs:
- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Release
run: npx semantic-release
- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
publish: bun run release
version: bun run version
commit: "chore: release new package version"
title: "🚀🚢 Release new package version 🚀🚢"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 0 additions & 17 deletions .releaserc.json

This file was deleted.

902 changes: 104 additions & 798 deletions bun.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"build:bundle": "bun build src/index.ts --outfile dist/index.js --format esm --target bun --external @opencode-ai/plugin",
"build:types": "tsc --project tsconfig.build.json",
"typecheck": "tsc --noEmit",
"version": "changeset version",
"release": "bun run build && changeset publish",
"prepare": "simple-git-hooks"
},
"simple-git-hooks": {
Expand All @@ -35,13 +37,11 @@
"access": "public"
},
"devDependencies": {
"@changesets/cli": "^2.30.0",
"@commitlint/cli": "^20.5.0",
"@commitlint/config-conventional": "^20.5.0",
"@opencode-ai/plugin": "1.2.27",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/bun": "1.3.10",
"semantic-release": "^25.0.3",
"simple-git-hooks": "^2.13.1"
},
"peerDependencies": {
Expand Down
Loading