Skip to content

Commit 0bfdd92

Browse files
authored
ci(release): adopt release-please v4 for automated releases (#60)
1 parent fa43f18 commit 0bfdd92

3 files changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
issues: write
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
config-file: release-please-config.json
21+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.3.2"
3+
}

release-please-config.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "node",
4+
"include-v-in-tag": true,
5+
"include-component-in-tag": false,
6+
"separate-pull-requests": false,
7+
"pull-request-title-pattern": "chore(release): v${version}",
8+
"changelog-sections": [
9+
{ "type": "feat", "section": "✨ Features" },
10+
{ "type": "fix", "section": "🐛 Bug Fixes" },
11+
{ "type": "perf", "section": "⚡ Performance" },
12+
{ "type": "refactor", "section": "♻️ Refactoring" },
13+
{ "type": "deps", "section": "📦 Dependencies" },
14+
{ "type": "docs", "section": "📚 Documentation", "hidden": false },
15+
{ "type": "build", "section": "🛠️ Build System", "hidden": true },
16+
{ "type": "ci", "section": "🤖 CI", "hidden": true },
17+
{ "type": "chore", "section": "🧹 Chores", "hidden": true },
18+
{ "type": "style", "section": "💎 Style", "hidden": true },
19+
{ "type": "test", "section": "🧪 Tests", "hidden": true }
20+
],
21+
"packages": {
22+
".": {
23+
"package-name": "monolith",
24+
"extra-files": [
25+
{
26+
"type": "json",
27+
"path": "client/package.json",
28+
"jsonpath": "$.version"
29+
},
30+
{
31+
"type": "json",
32+
"path": "server/package.json",
33+
"jsonpath": "$.version"
34+
}
35+
]
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)