Skip to content

Commit a23cfb4

Browse files
ci: configure release-please and semantic pull requests
- Add `release-please-config.json` and `.release-please-manifest.json` for manifest-based release management. - Add `.github/workflows/semantic-pull-request.yml` to enforce conventional commit titles. - Update `.github/workflows/release.yml` to remove inline configuration and rely on config files.
1 parent c516633 commit a23cfb4

4 files changed

Lines changed: 47 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: googleapis/release-please-action@v4
17-
with:
18-
release-type: go
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Semantic Pull Request"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
# Configure which types are allowed.
20+
# Default: https://github.com/commitizen/conventional-commit-types
21+
types: |
22+
feat
23+
fix
24+
docs
25+
style
26+
refactor
27+
perf
28+
test
29+
build
30+
ci
31+
chore
32+
revert
33+
# Configure that a scope must always be provided.
34+
requireScope: false

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

release-please-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "go",
5+
"package-name": "laravel-go",
6+
"include-component-in-tag": false
7+
}
8+
},
9+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
10+
}

0 commit comments

Comments
 (0)