mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
feat: add changeset release notes workflow
- Add .changeset/config.json with @changesets/changelog-github and fixed versioning for kilo-code + @kilocode/cli - Add .github/workflows/changeset-release.yml to auto-create version bump PRs on push to main - Add @changesets/cli and @changesets/changelog-github devDependencies - Add changeset and changeset:version scripts to root package.json - Add .changeset/README.md with contributor instructions Closes #7909
This commit is contained in:
committed by
Mark IJbema
parent
aa6b4df0cf
commit
8d09c7474f
@@ -0,0 +1,25 @@
|
||||
# Changesets
|
||||
|
||||
This directory contains changeset files used to track changes for the next release.
|
||||
|
||||
## Adding a changeset
|
||||
|
||||
When making a user-facing change, run:
|
||||
|
||||
```sh
|
||||
bunx changeset add
|
||||
```
|
||||
|
||||
Or manually create a file `.changeset/<slug>.md`:
|
||||
|
||||
```md
|
||||
---
|
||||
"kilo-code": minor
|
||||
---
|
||||
|
||||
Short description of the change for the changelog.
|
||||
```
|
||||
|
||||
Use `patch` for bug fixes, `minor` for new features, `major` for breaking changes.
|
||||
|
||||
Changeset files are consumed when the version bump PR is merged, updating `CHANGELOG.md` and bumping `package.json` versions.
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
|
||||
"changelog": ["@changesets/changelog-github", { "repo": "Kilo-Org/kilocode" }],
|
||||
"commit": false,
|
||||
"fixed": [["kilo-code", "@kilocode/cli"]],
|
||||
"linked": [],
|
||||
"access": "restricted",
|
||||
"baseBranch": "main",
|
||||
"updateInternalDependencies": "patch",
|
||||
"ignore": []
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
name: Changeset Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
changeset-pr-version-bump:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'Kilo-Org/kilocode'
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: ./.github/actions/setup-bun
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Changeset Pull Request
|
||||
id: changesets
|
||||
uses: changesets/action@v1
|
||||
with:
|
||||
commit: "chore: changeset version bump"
|
||||
title: "chore: changeset version bump"
|
||||
version: bun run changeset:version
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
+5
-1
@@ -16,7 +16,9 @@
|
||||
"random": "echo 'Random script'",
|
||||
"hello": "echo 'Hello World!'",
|
||||
"test": "echo 'do not run tests from root' && exit 1",
|
||||
"extension": "bun --cwd packages/kilo-vscode script/launch.ts"
|
||||
"extension": "bun --cwd packages/kilo-vscode script/launch.ts",
|
||||
"changeset": "bunx changeset",
|
||||
"changeset:version": "bunx changeset version"
|
||||
},
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
@@ -72,6 +74,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@actions/artifact": "5.0.1",
|
||||
"@changesets/changelog-github": "^0.5.1",
|
||||
"@changesets/cli": "^2.27.10",
|
||||
"@tsconfig/bun": "catalog:",
|
||||
"@types/mime-types": "3.0.1",
|
||||
"@typescript/native-preview": "catalog:",
|
||||
|
||||
Reference in New Issue
Block a user