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
51 changes: 51 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading