diff --git a/README.md b/README.md index 41754b8..abf56d7 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,12 @@ > Tooling and unified configuration for managing a bunch of repositories and packages. -## TODO +## Stack & Standards -- `check` action - - `check` bun script - - `test` bun script -- `release` action - - build with bun? - - run semantic release +- Bun +- TypeScript +- Oxlint & Oxfmt +- Commitlint +- Conventional Commit +- Semantic Release +- Forgejo Actions diff --git a/actions/release/action.yml b/actions/release/action.yml index 63e1403..5bd065a 100644 --- a/actions/release/action.yml +++ b/actions/release/action.yml @@ -1,5 +1,5 @@ name: Semantic Release -description: Run multi-semantic-release for per-package versioning +description: Run semantic-release (multi for monorepos, standard for solo packages) inputs: gitea-token: @@ -39,4 +39,9 @@ runs: GITEA_TOKEN: ${{ inputs.gitea-token }} GITEA_URL: ${{ inputs.gitea-url }} 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 diff --git a/templates/tools-oxc/oxlint.config.ts b/templates/tools-oxc/oxlint.config.ts index d00053a..5e0cab7 100644 --- a/templates/tools-oxc/oxlint.config.ts +++ b/templates/tools-oxc/oxlint.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from "oxlint" export default defineConfig({ plugins: ["typescript", "unicorn", "oxc"], - ignorePatterns: ["**/*.gen.ts"], + ignorePatterns: ["**/*.gen.ts", "node_modules/**/*"], categories: { correctness: "error", suspicious: "warn",