Skip to content

Commit 8e840e4

Browse files
committed
ci(steps): Handle push into protected branch
1 parent 3df8aec commit 8e840e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
pull-requests: write
5454
runs-on: ubuntu-latest
5555
steps:
56+
- uses: actions/create-github-app-token@v2
57+
id: app-token
58+
with:
59+
app-id: ${{ vars.APP_ID }}
60+
private-key: ${{ secrets.CLIENT_SECRET }}
61+
5662
- name: Checkout
5763
uses: actions/checkout@v4
5864

@@ -80,6 +86,6 @@ jobs:
8086

8187
- name: Run Semantic Release
8288
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
8490
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8591
run: npx semantic-release

0 commit comments

Comments
 (0)