Skip to content

Commit 6de8860

Browse files
authored
ci: improve release please config (#431)
1 parent 488a6c3 commit 6de8860

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
16+
17+
- name: Create GitHub App token
18+
uses: actions/create-github-app-token@v2
19+
id: app-token
20+
with:
21+
app-id: '${{ secrets.CR_APP_CI_APP_ID }}'
22+
private-key: '${{ secrets.CR_APP_CI_PRIVATE_KEY }}'
23+
owner: '${{ env.FLUX_OWNER }}'
24+
repositories: '${{ env.FLUX_REPO }}'
1625

1726
- name: Release Please
1827
uses: googleapis/release-please-action@v4
1928
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
release-type: python
29+
token: '${{ steps.app-token.outputs.token }}'

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"0.1.5"}

release-please-config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "python",
6+
"bump-minor-pre-major": true
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)