Skip to content

Commit 796bd01

Browse files
authored
ci: use release-please config (#73)
1 parent c279829 commit 796bd01

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This workflow has 2 roles:
2+
# - Create the release PR.
3+
# - Create the release tag and artifact (once the release PR is merged).
14
name: Release
25

36
on:
@@ -9,16 +12,24 @@ permissions:
912
actions: write
1013
contents: write
1114
pull-requests: write
15+
issues: write
1216

1317
jobs:
1418
release-please:
1519
runs-on: ubuntu-latest
1620
steps:
17-
- uses: GoogleCloudPlatform/release-please-action@v4
21+
- name: Run release-please
22+
uses: GoogleCloudPlatform/release-please-action@v4
1823
id: release
1924
with:
20-
release-type: simple
25+
config-file: release-please-config.json
26+
manifest-file: .release-please-manifest.json
2127
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
28+
- name: Print release-please outputs
29+
env:
30+
RELEASE_PLEASE_OUTPUTS: ${{ toJson(steps.release.outputs) }}
31+
run: |
32+
echo "${RELEASE_PLEASE_OUTPUTS}" | jq
2233
- name: Upload Release Artifact
2334
if: ${{ steps.release.outputs.release_created }}
2435
env:

.release-please-manifest.json

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

release-please-config.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "simple",
4+
"bump-minor-pre-major": true,
5+
"pull-request-title-pattern": "chore: release ${version}",
6+
"include-component-in-tag": false,
7+
"include-v-in-tag": true,
8+
"changelog-sections": [
9+
{
10+
"type": "feat",
11+
"section": "Features",
12+
"hidden": false
13+
},
14+
{
15+
"type": "fix",
16+
"section": "Bug Fixes",
17+
"hidden": false
18+
},
19+
{
20+
"type": "chore",
21+
"section": "Miscellaneous",
22+
"hidden": true
23+
},
24+
{
25+
"type": "docs",
26+
"section": "Documentation",
27+
"hidden": false
28+
},
29+
{
30+
"type": "deps",
31+
"section": "Dependencies",
32+
"hidden": true
33+
},
34+
{
35+
"type": "refactor",
36+
"section": "Refactors",
37+
"hidden": false
38+
}
39+
],
40+
"packages": {
41+
".": {}
42+
}
43+
}

0 commit comments

Comments
 (0)