Skip to content

Commit aa4db16

Browse files
committed
chore: standardize git-flow + release-please tooling
release-please owns version/CHANGELOG/tag on main; commitlint enforces Conventional Commits (required PR check); dependabot targets develop.
1 parent 36094af commit aa4db16

6 files changed

Lines changed: 32 additions & 29 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
version: 2
22
updates:
3-
# Library dependencies
43
- package-ecosystem: npm
5-
directory: /
4+
directory: "/"
65
schedule:
76
interval: weekly
7+
target-branch: develop
88
open-pull-requests-limit: 5
9-
groups:
10-
minor-and-patch:
11-
update-types: [minor, patch]
12-
13-
# Example app dependencies
14-
- package-ecosystem: npm
15-
directory: /example
16-
schedule:
17-
interval: weekly
18-
open-pull-requests-limit: 5
19-
groups:
20-
minor-and-patch:
21-
update-types: [minor, patch]
22-
23-
# GitHub Actions versions (also bumps the deprecated Node-20 actions)
9+
commit-message:
10+
prefix: "build(deps)"
2411
- package-ecosystem: github-actions
25-
directory: /
12+
directory: "/"
2613
schedule:
2714
interval: weekly
28-
groups:
29-
actions:
30-
patterns: ['*']
15+
target-branch: develop
16+
commit-message:
17+
prefix: "ci(deps)"

.github/workflows/commitlint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: commitlint
2+
3+
on:
4+
pull_request:
5+
branches: [develop, main]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
commitlint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: wagoid/commitlint-github-action@v6
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: release-please
22

3-
# Maintains a release PR (version bump in package.json + CHANGELOG.md from
4-
# Conventional Commits). Merging that PR creates a GitHub Release + tag, which
5-
# triggers release.yml to publish to npm.
63
on:
74
push:
85
branches: [main]
@@ -11,14 +8,12 @@ permissions:
118
contents: write
129
pull-requests: write
1310

14-
env:
15-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
16-
1711
jobs:
1812
release-please:
1913
runs-on: ubuntu-latest
2014
steps:
2115
- uses: googleapis/release-please-action@v4
2216
with:
17+
target-branch: main
2318
config-file: release-please-config.json
2419
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "1.1.0"
33
}

commitlint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
};

release-please-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"release-type": "node",
66
"package-name": "@klaappinc/react-native-nitro-protobuf",
77
"changelog-path": "CHANGELOG.md",
8-
"include-component-in-tag": false
8+
"include-component-in-tag": false,
9+
"include-v-in-tag": true
910
}
1011
}
1112
}

0 commit comments

Comments
 (0)