Skip to content

Commit e11ed81

Browse files
chore: update release please to use gh app token (#3934)
* chore: update release please to use gh app token * chore: delete .github/release-please.yml Added this information to the GH action.
1 parent bbd3e4b commit e11ed81

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

.github/release-please.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## -----------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
4+
## -----------------------------------------------------------------------------
5+
#
6+
# Summary:
7+
# This GitHub Actions workflow automates the release process using Release Please.
8+
# It triggers on pushes to the main branch, generates a GitHub App token using organization
9+
# variables and secrets, and then runs the release-please-action to manage versioning and changelogs.
10+
111
name: Release Please for Master
212

313
on:
@@ -10,12 +20,21 @@ jobs:
1020
runs-on: ubuntu-latest
1121
steps:
1222
- name: Checkout repository
13-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
25+
- name: Generate GitHub App token
26+
id: app-token
27+
uses: actions/create-github-app-token@v2
28+
with:
29+
app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
30+
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
1431

15-
- name: Run Release Please for Master
32+
- name: Release Please
1633
uses: googleapis/release-please-action@v4
1734
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
target-branch: master
35+
token: ${{ steps.app-token.outputs.token }}
2036
config-file: release-please-config.json
21-
manifest-file: .release-please-manifest.json
37+
manifest-file: .release-please-manifest.json
38+
manifest: true
39+
primaryBranch: dev
40+
handleGHRelease: true

0 commit comments

Comments
 (0)