Skip to content

Commit 7bada92

Browse files
committed
feat: add release-please workflow and configuration files for automated releases
1 parent 1e2deac commit 7bada92

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
release_created: ${{ steps.release.outputs.release_created }}
13+
tag_name: ${{ steps.release.outputs.tag_name }}
14+
upload_url: ${{ steps.release.outputs.upload_url }}
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
issues: write
19+
steps:
20+
- uses: googleapis/release-please-action@v4
21+
id: release
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
config-file: release-please-config.json
25+
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.4.0"
3+
}

release-please-config.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "simple",
6+
"extra-files": [
7+
{
8+
"type": "json",
9+
"path": "booster/composer.json",
10+
"jsonpath": "$.version"
11+
},
12+
{
13+
"type": "json",
14+
"path": "booster/package.json",
15+
"jsonpath": "$.version"
16+
},
17+
18+
{
19+
"type": "json",
20+
"path": "docs/package.json",
21+
"jsonpath": "$.version"
22+
}
23+
]
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)