Compare commits

...

2 Commits

Author SHA1 Message Date
claude-code-best
fc7a85f5c7 chore: 1.9.2 2026-04-23 23:04:18 +08:00
claude-code-best
5bc12b00b2 chore: 更新版本流水线 2026-04-23 22:55:27 +08:00
2 changed files with 20 additions and 19 deletions

View File

@@ -4,6 +4,12 @@ on:
push: push:
tags: tags:
- 'v*' - 'v*'
workflow_dispatch:
inputs:
version:
description: '版本号 (例如: v1.9.0)'
required: true
type: string
permissions: permissions:
contents: write contents: write
@@ -15,11 +21,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: with:
node-version: '20.x' ref: ${{ github.event.inputs.version || github.ref }}
registry-url: 'https://registry.npmjs.org'
- uses: actions/setup-node@v6
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Setup Bun - name: Setup Bun
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
@@ -28,10 +36,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: bun install --frozen-lockfile run: bun install --frozen-lockfile
- name: Build
run: bun run build:vite
- name: Type check - name: Type check
run: bun run typecheck run: bun run typecheck
@@ -46,13 +50,11 @@ jobs:
- name: Generate changelog - name: Generate changelog
id: changelog id: changelog
run: | run: |
PREV_TAG=$(git tag --sort=-version:refname | head -2 | tail -1) VERSION="${{ github.event.inputs.version || github.ref_name }}"
if [ "$PREV_TAG" = "$GITHUB_REF_NAME" ]; then PREV_TAG=$(git tag --sort=-version:refname | grep -v "^${VERSION#v}$" | head -1)
PREV_TAG=""
fi
if [ -n "$PREV_TAG" ]; then if [ -n "$PREV_TAG" ]; then
COMMITS=$(git log "${PREV_TAG}..HEAD" --pretty=format:"- %s (%h)" --no-merges) COMMITS=$(git log "${PREV_TAG}..${VERSION}" --pretty=format:"- %s (%h)" --no-merges)
else else
COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges -20) COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges -20)
fi fi
@@ -66,12 +68,12 @@ jobs:
- name: Create GitHub Release - name: Create GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
name: ${{ github.ref_name }} name: ${{ github.event.inputs.version || github.ref_name }}
body: | body: |
## What's Changed ## What's Changed
${{ steps.changelog.outputs.commits }} ${{ steps.changelog.outputs.commits }}
**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ github.ref_name }}^...${{ github.ref_name }} **Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ github.event.inputs.version || github.ref_name }}^...${{ github.event.inputs.version || github.ref_name }}
draft: false draft: false
prerelease: ${{ contains(github.ref_name, 'rc') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }} prerelease: ${{ contains(github.event.inputs.version || github.ref_name, 'rc') || contains(github.event.inputs.version || github.ref_name, 'beta') || contains(github.event.inputs.version || github.ref_name, 'alpha') }}

View File

@@ -1,6 +1,6 @@
{ {
"name": "claude-code-best", "name": "claude-code-best",
"version": "1.9.1", "version": "1.9.2",
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal", "description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
"type": "module", "type": "module",
"author": "claude-code-best <claude-code-best@proton.me>", "author": "claude-code-best <claude-code-best@proton.me>",
@@ -47,11 +47,10 @@
"build:bun": "bun run build.ts", "build:bun": "bun run build.ts",
"dev": "bun run scripts/dev.ts", "dev": "bun run scripts/dev.ts",
"dev:inspect": "bun run scripts/dev-debug.ts", "dev:inspect": "bun run scripts/dev-debug.ts",
"prepublishOnly": "bun run build", "prepublishOnly": "bun run build:vite",
"lint": "biome lint src/", "lint": "biome lint src/",
"lint:fix": "biome lint --fix src/", "lint:fix": "biome lint --fix src/",
"format": "biome format --write src/", "format": "biome format --write src/",
"prepare": "git config core.hooksPath .githooks",
"test": "bun test", "test": "bun test",
"test:production": "bun run scripts/production-test.ts", "test:production": "bun run scripts/production-test.ts",
"test:production:offline": "bun run scripts/production-test.ts --offline", "test:production:offline": "bun run scripts/production-test.ts --offline",