Skip to content

Commit 00d6a80

Browse files
committed
feat: release please setup
1 parent 5c34d54 commit 00d6a80

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,27 @@ jobs:
6666
with:
6767
sarif_file: "govulncheck.sarif"
6868
category: "govulncheck"
69+
70+
release-please:
71+
name: Prepare release
72+
runs-on: ubuntu-latest
73+
if: github.ref == 'refs/heads/main'
74+
steps:
75+
- name: Checkout code
76+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
77+
with:
78+
fetch-depth: 0
79+
fetch-tags: true
80+
81+
- name: Create GitHub App token
82+
id: app-token
83+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
84+
with:
85+
app-id: ${{ secrets.SUMUP_BOT_APP_ID }}
86+
private-key: ${{ secrets.SUMUP_BOT_PRIVATE_KEY }}
87+
88+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
89+
with:
90+
token: ${{ steps.app-token.outputs.token }}
91+
target-branch: ${{ github.ref_name }}
92+
skip-github-pull-request: "${{ startsWith(github.event.head_commit.message, 'release: ') }}"

.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.0"
3+
}

release-please-config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"bump-minor-pre-major": true,
4+
"bump-patch-for-minor-pre-major": false,
5+
"draft": true,
6+
"extra-label": "release",
7+
"include-component-in-tag": false,
8+
"include-v-in-tag": true,
9+
"pull-request-header": "Automated sumup-cli release",
10+
"pull-request-title-pattern": "release: ${version}",
11+
"release-type": "go",
12+
"versioning": "prerelease",
13+
"packages": {
14+
".": {}
15+
}
16+
}

0 commit comments

Comments
 (0)