From 5b2a41d991140867e2fb641024bf8acb7c791363 Mon Sep 17 00:00:00 2001 From: Shoubhit Dash Date: Fri, 2 Jan 2026 02:15:34 +0530 Subject: [PATCH 1/3] v0.1.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 763eb6b..09641be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencode-supermemory", - "version": "0.1.4", + "version": "0.1.5", "description": "OpenCode plugin that gives coding agents persistent memory using Supermemory", "type": "module", "main": "dist/index.js", From 1e143e5b6bf139df8ed8d3b7a1b360f31acb1f92 Mon Sep 17 00:00:00 2001 From: Shoubhit Dash Date: Fri, 2 Jan 2026 02:17:09 +0530 Subject: [PATCH 2/3] add release workflow --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ scripts/release.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100755 scripts/release.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3e35e9d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + + - run: bun install + + - run: bun run typecheck + + - run: bun run build + + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..3217d58 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,31 @@ +#!/bin/bash +set -e + +BUMP_TYPE="${1:-patch}" + +if [[ ! "$BUMP_TYPE" =~ ^(patch|minor|major)$ ]]; then + echo "usage: ./scripts/release.sh [patch|minor|major]" + exit 1 +fi + +CURRENT_VERSION=$(jq -r .version package.json) +echo "current version: $CURRENT_VERSION" + +IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION" +case "$BUMP_TYPE" in + major) NEW_VERSION="$((MAJOR + 1)).0.0" ;; + minor) NEW_VERSION="$MAJOR.$((MINOR + 1)).0" ;; + patch) NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))" ;; +esac + +echo "new version: $NEW_VERSION" + +jq ".version = \"$NEW_VERSION\"" package.json > package.json.tmp && mv package.json.tmp package.json + +git add package.json +git commit -m "v$NEW_VERSION" +git tag "v$NEW_VERSION" + +echo "" +echo "created commit and tag v$NEW_VERSION" +echo "run 'git push && git push --tags' to trigger release" From 34f483c60e2211bd267bbf38b9cfcb2757103295 Mon Sep 17 00:00:00 2001 From: Shoubhit Dash Date: Fri, 2 Jan 2026 02:18:09 +0530 Subject: [PATCH 3/3] add usage --- scripts/release.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index 3217d58..63ea2b4 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -1,4 +1,22 @@ #!/bin/bash +# +# Release script for opencode-supermemory +# +# Usage: +# ./scripts/release.sh [patch|minor|major] +# +# Examples: +# ./scripts/release.sh patch # 0.1.4 → 0.1.5 +# ./scripts/release.sh minor # 0.1.4 → 0.2.0 +# ./scripts/release.sh major # 0.1.4 → 1.0.0 +# +# After running, push to trigger the GitHub Actions release workflow: +# git push && git push --tags +# +# Prerequisites: +# - jq installed +# - NPM_TOKEN secret configured in GitHub repo settings +# set -e BUMP_TYPE="${1:-patch}"