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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Setup Node.js (semantic-release runs on Node)
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26

# The version is pinned: zizmor's ad-hoc package audit has nothing left to check.
- name: Update npm (trusted publishing needs npm 11.5.1 or later)
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
- name: Setup Node.js (semantic-release runs on Node)
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26

- name: Install dependencies
env:
Expand Down
11 changes: 10 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "build", "scope": "deps", "release": "patch" },
{ "type": "chore", "scope": "deps", "release": "patch" }
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bun 1.4.3
bun 1.4.5
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Documentation, comments, commit messages and user-facing strings use direct lang
- Conventional Commits (`type(scope): description`), enforced by commitlint. The type sets the
release bump: `fix` patch, `feat` minor, a `BREAKING CHANGE:` footer major (semantic-release,
run from the Release workflow). A `!` after the type is not read: write the footer.
`chore(deps)` and `build(deps)` are a patch of the app. `chore(deps-dev)` releases nothing.
- Small commits, each passing `bun run verify`.
- Husky runs Biome on staged files before a commit, commitlint on the message, and
`bun run verify` before a push. Do not skip hooks.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Quality](https://github.com/jboix/quanthea/actions/workflows/quality.yml/badge.svg)](https://github.com/jboix/quanthea/actions/workflows/quality.yml)
[![Release](https://github.com/jboix/quanthea/actions/workflows/release.yml/badge.svg)](https://github.com/jboix/quanthea/actions/workflows/release.yml)
[![version](https://img.shields.io/github/v/release/jboix/quanthea?label=version)](https://github.com/jboix/quanthea/releases/latest)
[![bun](https://img.shields.io/badge/bun-1.4.2-brightgreen)](https://bun.sh)
[![bun](https://img.shields.io/badge/bun-1.4.5-brightgreen)](https://bun.sh)
[![TypeScript](https://img.shields.io/badge/TypeScript-6.0-3178c6)](https://www.typescriptlang.org)
[![license: MIT](https://img.shields.io/badge/license-MIT-blue)](./LICENSE)

Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.6.7/schema.json",
"$schema": "https://biomejs.dev/schemas/2.6.8/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
268 changes: 151 additions & 117 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ publishes the Docker image to GHCR. The type you choose is the version bump you

- `fix:` patch, `feat:` minor, a `BREAKING CHANGE:` footer major. A `!` after the type is not
read: write the footer.
- `docs:`, `chore:`, `test:`, `refactor:`, `ci:`, `build:` produce no release.
- `chore(deps):` and `build(deps):` patch, for the app only: an update of a dependency the image
ships is released. `chore(deps-dev):` produces no release.
- `docs:`, `chore:`, `test:`, `refactor:`, `ci:`, `build:` produce no release otherwise.

The plugin kit (`@quanthea/plugin-kit`) has its own version. The Release workflow runs
semantic-release for it on the commits that changed `packages/plugin-kit`, with the same rules,
and publishes it to npm. Scope those commits `plugin-kit`. The kit's major version equals
semantic-release for it on the commits that changed `packages/plugin-kit`, with the same rules
except the one for dependency updates, and publishes it to npm. Scope those commits `plugin-kit`. The kit's major version equals
`kitVersion`, so while the kit is in 0.x:

- A `BREAKING CHANGE` footer makes a minor version of the kit, as a `feat` does. The footer of
Expand Down
8 changes: 6 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5356,7 +5356,10 @@ The Release workflow (`.github/workflows/release.yml`) runs on demand, from `mai
a time (a second dispatch waits for the first):

1. semantic-release reads the Conventional Commits on `main`. `fix` is a patch, `feat` a minor
version, a `BREAKING CHANGE:` footer a major version. Other types release nothing.
version, a `BREAKING CHANGE:` footer a major version. `chore(deps)` and `build(deps)` are a
patch too, so an update of a dependency the image ships reaches a release. `chore(deps-dev)`
and every other type release nothing. The release notes list `feat`, `fix`, `perf` and reverts
only, so a dependency update does not appear in them.
semantic-release uses its default preset, which does not read a `!` after the type.
2. semantic-release writes the version into the root `package.json`, commits it as
`chore(release): X.Y.Z [skip ci]`, tags `vX.Y.Z` and creates the GitHub Release with the notes.
Expand All @@ -5372,7 +5375,8 @@ a time (a second dispatch waits for the first):
4. Before the app's job, the packages job runs semantic-release for the plugin kit alone, from
`packages/plugin-kit/.releaserc.json` with `semantic-release-monorepo`. It reads only the
commits that changed `packages/plugin-kit` since the last `plugin-kit-vX.Y.Z` tag, with the
same rules: `fix` a patch, `feat` a minor version. The job builds `dist/` before it mints the
rules of the default preset: `fix` a patch, `feat` a minor version. A dependency update
releases the app only, never the kit or the generator. The job builds `dist/` before it mints the
bot token (`scripts/dist.ts`), and the prepare step writes the cut version into
`dist/package.json` (`scripts/stamp.ts`, which refuses a major version other than `kitVersion`).
Then `@semantic-release/npm` publishes `dist` through trusted publishing (OIDC), which signs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"remark-cli": "^12.0.1",
"remark-gfm": "^4.0.1",
"remark-validate-links": "^13.1.0",
"semantic-release": "^25.0.9",
"semantic-release": "^26.0.1",
"typescript": "~6.0.3"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"devDependencies": {
"@quanthea/plugin-kit": "workspace:*",
"@semantic-release/exec": "^7.1.0",
"semantic-release": "^25.0.9",
"semantic-release": "^26.0.1",
"semantic-release-monorepo": "^8.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Node.js (npm publishes)
uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26

- name: Update npm (trusted publishing needs npm 11.5.1 or later)
run: npm install -g npm@^11.5.1
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"devDependencies": {
"@semantic-release/exec": "^7.1.0",
"semantic-release": "^25.0.9",
"semantic-release": "^26.0.1",
"semantic-release-monorepo": "^8.0.2"
}
}