support solo repos with semantic release

This commit is contained in:
Dan Finch 2026-05-03 12:00:52 +02:00
parent 2602b67938
commit bd354fb57d
3 changed files with 16 additions and 10 deletions

View file

@ -2,11 +2,12 @@
> Tooling and unified configuration for managing a bunch of repositories and packages. > Tooling and unified configuration for managing a bunch of repositories and packages.
## TODO ## Stack & Standards
- `check` action - Bun
- `check` bun script - TypeScript
- `test` bun script - Oxlint & Oxfmt
- `release` action - Commitlint
- build with bun? - Conventional Commit
- run semantic release - Semantic Release
- Forgejo Actions

View file

@ -1,5 +1,5 @@
name: Semantic Release name: Semantic Release
description: Run multi-semantic-release for per-package versioning description: Run semantic-release (multi for monorepos, standard for solo packages)
inputs: inputs:
gitea-token: gitea-token:
@ -39,4 +39,9 @@ runs:
GITEA_TOKEN: ${{ inputs.gitea-token }} GITEA_TOKEN: ${{ inputs.gitea-token }}
GITEA_URL: ${{ inputs.gitea-url }} GITEA_URL: ${{ inputs.gitea-url }}
NPM_TOKEN: ${{ inputs.npm-token }} NPM_TOKEN: ${{ inputs.npm-token }}
run: bunx multi-semantic-release run: |
if node -e "const p=require('./package.json'); process.exit(p.workspaces ? 0 : 1)"; then
bunx multi-semantic-release
else
bunx semantic-release
fi

View file

@ -2,7 +2,7 @@ import { defineConfig } from "oxlint"
export default defineConfig({ export default defineConfig({
plugins: ["typescript", "unicorn", "oxc"], plugins: ["typescript", "unicorn", "oxc"],
ignorePatterns: ["**/*.gen.ts"], ignorePatterns: ["**/*.gen.ts", "node_modules/**/*"],
categories: { categories: {
correctness: "error", correctness: "error",
suspicious: "warn", suspicious: "warn",