Skip to content

Commit a8af3b4

Browse files
committed
Adds release please configuration
1 parent 6c11aca commit a8af3b4

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

.github/release-please.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
manifest: true
2+
primaryBranch: main
3+
handleGHRelease: true

.github/workflows/release-please.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .github/workflows/release-please.yml
2+
3+
name: Release Please
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Go
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: '^1.20'
24+
25+
- name: Release Please
26+
uses: google-github-actions/release-please-action@v3
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}

.release-please-manifest.json

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

release-please-config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"release-type": "go",
3+
"bump-minor-pre-major": true,
4+
"bump-patch-for-minor-pre-major": true,
5+
"include-component-in-tag": false,
6+
"packages": {
7+
".": {
8+
"package-name": "github.com/microsoftgraph/msgraph-sdk-go",
9+
"changelog-path": "CHANGELOG.md"
10+
}
11+
},
12+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
13+
}
14+

0 commit comments

Comments
 (0)