diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5237e4c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,51 @@ +name: Publish to npm + +on: + release: + types: + - published + +permissions: + contents: read + id-token: write + +concurrency: + group: npm-publish-${{ github.event.release.tag_name }} + cancel-in-progress: false + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Check out release + uses: actions/checkout@v6 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + registry-url: https://registry.npmjs.org + package-manager-cache: false + + - name: Set up Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.10 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Verify release version + env: + RELEASE_TAG: ${{ github.event.release.tag_name }} + run: | + PACKAGE_VERSION="$(node -p "require('./package.json').version")" + test "$RELEASE_TAG" = "v$PACKAGE_VERSION" + + - name: Check plugin + run: bun run check + + - name: Publish package + run: npm publish diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d81e1e..5a2d8f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project follows [Semantic Versioning](https://semver.org/). ## [Unreleased] +## [0.1.2] - 2026-07-28 + ### Fixed - Dynamically route models with Anthropic protocol metadata through @@ -34,6 +36,7 @@ and this project follows [Semantic Versioning](https://semver.org/). - Automatic model names and capability hints in OpenCode's model picker. - Local plugin and npm package installation flows. -[Unreleased]: https://github.com/yourcasualdev/opencode-cliproxyapi/compare/v0.1.1...HEAD +[Unreleased]: https://github.com/yourcasualdev/opencode-cliproxyapi/compare/v0.1.2...HEAD +[0.1.2]: https://github.com/yourcasualdev/opencode-cliproxyapi/compare/v0.1.1...v0.1.2 [0.1.1]: https://github.com/yourcasualdev/opencode-cliproxyapi/compare/v0.1.0...v0.1.1 [0.1.0]: https://github.com/yourcasualdev/opencode-cliproxyapi/releases/tag/v0.1.0 diff --git a/package.json b/package.json index e1a9f18..a0c1240 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "opencode-cliproxyapi", - "version": "0.1.1", + "version": "0.1.2", "description": "Discover and use every model exposed by CLIProxyAPI in OpenCode.", "type": "module", "license": "MIT",