mirror of
https://github.com/delibae/claude-prism.git
synced 2026-08-28 05:14:59 +00:00
chore: setup covector and bump version to v0.4.0
- Add covector config and CI workflow for automated versioning - Bump all package versions to 0.4.0 - Add .changes/ directory with README for change management Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
30b275e643
commit
5f1b6fb06b
8 changed files with 1553 additions and 12 deletions
16
.changes/README.md
Normal file
16
.changes/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Changes
|
||||
|
||||
변경사항이 버전 bump를 필요로 할 때, 이 디렉토리에 마크다운 파일을 추가합니다.
|
||||
|
||||
## 파일 형식
|
||||
|
||||
```md
|
||||
---
|
||||
"claude-prism-desktop": minor
|
||||
"@claude-prism/desktop": minor
|
||||
---
|
||||
|
||||
간단한 변경 설명 (changelog에 포함됨)
|
||||
```
|
||||
|
||||
Bump 타입: `major`, `minor`, `patch`
|
||||
36
.changes/config.json
Normal file
36
.changes/config.json
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"gitSiteUrl": "https://github.com/delibae/claude-prism",
|
||||
"changeTags": {
|
||||
"feat": "New Features",
|
||||
"fix": "Bug Fixes",
|
||||
"perf": "Performance",
|
||||
"refactor": "Refactoring",
|
||||
"chore": "Maintenance"
|
||||
},
|
||||
"pkgManagers": {
|
||||
"rust": {
|
||||
"version": true,
|
||||
"publish": false
|
||||
},
|
||||
"javascript": {
|
||||
"version": true,
|
||||
"publish": false
|
||||
}
|
||||
},
|
||||
"packages": {
|
||||
"claude-prism-desktop": {
|
||||
"path": "./apps/desktop/src-tauri",
|
||||
"manager": "rust",
|
||||
"version": true,
|
||||
"publish": false
|
||||
},
|
||||
"@claude-prism/desktop": {
|
||||
"path": "./apps/desktop",
|
||||
"manager": "javascript",
|
||||
"version": true,
|
||||
"publish": false,
|
||||
"dependencies": ["claude-prism-desktop"],
|
||||
"postversion": "node -e \"const fs=require('fs');const p='src-tauri/tauri.conf.json';const c=JSON.parse(fs.readFileSync(p));const pkg=JSON.parse(fs.readFileSync('package.json'));c.version=pkg.version;fs.writeFileSync(p,JSON.stringify(c,null,2)+'\\n')\""
|
||||
}
|
||||
}
|
||||
}
|
||||
73
.github/workflows/covector-version-or-publish.yml
vendored
Normal file
73
.github/workflows/covector-version-or-publish.yml
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
name: Covector Version or Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
version-or-publish:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Covector version or publish
|
||||
uses: jbolda/covector/packages/action@covector-v0
|
||||
id: covector
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
command: version-or-publish
|
||||
createRelease: false
|
||||
|
||||
- name: Sync Cargo.lock
|
||||
if: steps.covector.outputs.commandRan == 'version'
|
||||
run: |
|
||||
cd apps/desktop/src-tauri
|
||||
cargo generate-lockfile
|
||||
|
||||
- name: Create version bump PR
|
||||
if: steps.covector.outputs.commandRan == 'version'
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
title: "chore: version bump"
|
||||
commit-message: "chore: version bump"
|
||||
labels: version
|
||||
branch: covector/version-bump
|
||||
body: |
|
||||
## Version Bump
|
||||
|
||||
이 PR은 `.changes/` 파일들을 기반으로 자동 생성되었습니다.
|
||||
머지하면 새 버전 태그가 생성되고 릴리스 빌드가 시작됩니다.
|
||||
|
||||
- name: Create and push tag
|
||||
if: steps.covector.outputs.commandRan == 'publish'
|
||||
run: |
|
||||
VERSION=$(node -p "require('./apps/desktop/package.json').version")
|
||||
git tag -a "v${VERSION}" -m "Release v${VERSION}"
|
||||
git push origin "v${VERSION}"
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@claude-prism/desktop",
|
||||
"version": "0.0.1",
|
||||
"version": "0.4.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "claude-prism-desktop"
|
||||
version = "0.0.1"
|
||||
version = "0.4.0"
|
||||
description = "AI-powered LaTeX writing workspace"
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"$schema": "https://raw.githubusercontent.com/nicegui-unofficial/nicegui-tauri-template/main/src-tauri/tauri.conf-v2-schema.json",
|
||||
"identifier": "com.claude-prism.desktop",
|
||||
"productName": "ClaudePrism",
|
||||
"version": "0.0.1",
|
||||
"version": "0.4.0",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
"beforeBuildCommand": "pnpm build",
|
||||
|
|
|
|||
|
|
@ -16,10 +16,13 @@
|
|||
"dev:desktop": "pnpm --filter=@claude-prism/desktop-sidecar dev & pnpm --filter=@claude-prism/desktop tauri dev",
|
||||
"build:desktop": "pnpm --filter=@claude-prism/desktop tauri build",
|
||||
"lint": "pnpm exec biome check",
|
||||
"lint:fix": "pnpm exec biome check --fix"
|
||||
"lint:fix": "pnpm exec biome check --fix",
|
||||
"version:check": "covector status",
|
||||
"version:bump": "covector version"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^2.3.13",
|
||||
"covector": "^0.12",
|
||||
"turbo": "^2.7.6"
|
||||
},
|
||||
"packageManager": "pnpm@10.28.2",
|
||||
|
|
|
|||
1429
pnpm-lock.yaml
generated
1429
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue