Skip to content

Commit aad0e2e

Browse files
committed
ci: add release-please for automated releases
Automates version bumps, CHANGELOG updates, and GitHub Releases. The existing publish workflow chains automatically via the release event.
1 parent 05e2948 commit aad0e2e

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: googleapis/release-please-action@v4
16+
with:
17+
config-file: release-please-config.json
18+
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+
".": "0.1.17"
3+
}

release-please-config.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "node",
5+
"changelog-sections": [
6+
{ "type": "feat", "section": "Added" },
7+
{ "type": "fix", "section": "Fixed" },
8+
{ "type": "perf", "section": "Performance" },
9+
{ "type": "revert", "section": "Reverted" },
10+
{ "type": "docs", "section": "Documentation", "hidden": true },
11+
{ "type": "chore", "section": "Miscellaneous", "hidden": true },
12+
{ "type": "ci", "section": "Miscellaneous", "hidden": true },
13+
{ "type": "test", "section": "Miscellaneous", "hidden": true },
14+
{ "type": "build", "section": "Miscellaneous", "hidden": true },
15+
{ "type": "refactor", "section": "Miscellaneous", "hidden": true },
16+
{ "type": "style", "section": "Miscellaneous", "hidden": true }
17+
]
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)