From ec911e3efe6375df91b646026af10f16691e4541 Mon Sep 17 00:00:00 2001 From: Evgenii Peshkov Date: Fri, 10 Jul 2026 12:10:48 +0100 Subject: [PATCH] chore: harden release version guard Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .github/workflows/release.yml | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ff43c7..213cb7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,16 @@ jobs: - run: bun run build + - name: Verify tag matches package version + run: | + PACKAGE_VERSION=$(node -p "require('./package.json').version") + TAG_VERSION="${GITHUB_REF_NAME#v}" + + if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then + echo "Tag version v$TAG_VERSION does not match package.json version $PACKAGE_VERSION" + exit 1 + fi + - name: Setup Node.js for npm publish uses: actions/setup-node@v5 with: diff --git a/package.json b/package.json index ccf40e9..2ce3bbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencode-mem", - "version": "2.19.1", + "version": "2.19.4", "description": "OpenCode plugin that gives coding agents persistent memory using local vector database", "type": "module", "main": "dist/plugin.js",