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

@ -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