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
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ jobs:
github.event.pull_request.head.ref == 'fix' ||
startsWith(github.event.pull_request.head.ref, 'fix/') ||
github.event.pull_request.head.ref == 'break' ||
startsWith(github.event.pull_request.head.ref, 'break/')
startsWith(github.event.pull_request.head.ref, 'break/') ||
(
startsWith(github.event.pull_request.head.ref, 'renovate/') &&
startsWith(github.event.pull_request.title, 'fix(')
)
)

steps:
Expand Down Expand Up @@ -135,6 +139,14 @@ jobs:
break|break/*)
bump="major"
;;
renovate/*)
if [[ "${PR_TITLE}" == fix\(* ]]; then
bump="patch"
else
echo "Unsupported Renovate release title: ${PR_TITLE}"
exit 1
fi
;;
*)
echo "Unsupported release branch: $branch_name"
exit 1
Expand Down Expand Up @@ -229,6 +241,7 @@ jobs:
env:
HEAD_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}

- name: Publish package
if: >-
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ according to the source branch prefix:
| `feat/*` | Minor |
| `break/*` | Major |

Renovate runtime dependency PRs use `renovate/*` branches. They publish a patch
release only when the PR title starts with `fix(`.

Other branch names run validation only and do not publish.

## License
Expand Down
38 changes: 33 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":dependencyDashboard", ":semanticCommits"],
"extends": ["config:recommended", ":semanticCommits"],
"labels": ["dependencies"],
"timezone": "Europe/Madrid",
"rangeStrategy": "bump",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"platformAutomerge": true,
"commitMessageAction": "猬嗭笍 update",
"packageRules": [
{
"groupName": "non-major dependencies",
"matchUpdateTypes": ["minor", "patch"]
"description": "Runtime deps: patch/minor grouped, automerge, release patch",
"groupName": "non-major runtime dependencies",
"matchDepTypes": ["dependencies", "optionalDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"semanticCommitType": "fix",
Comment thread
haskou marked this conversation as resolved.
"semanticCommitScope": "deps",
"automerge": true,
"automergeType": "pr"
},
{
"description": "Dev deps: patch/minor grouped, automerge, no release",
"groupName": "non-major dev dependencies",
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"automerge": true,
"automergeType": "pr"
},
{
"description": "Peer deps: manual review",
"matchDepTypes": ["peerDependencies"],
"semanticCommitType": "fix",
"semanticCommitScope": "peer-deps",
"automerge": false
},
{
"description": "Major updates: manual review",
"matchUpdateTypes": ["major"],
"automerge": false
}
]
}
Loading