Skip to content

Commit 5b67130

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: CI Pipeline
2+
run-name: ${{ github.actor }} is automatically publishing
23

34
on:
45
push:
@@ -53,6 +54,12 @@ jobs:
5354
pull-requests: write
5455
runs-on: ubuntu-latest
5556
steps:
57+
- uses: actions/create-github-app-token@v2
58+
id: app-token
59+
with:
60+
app-id: ${{ secrets.BOT_APP_ID }}
61+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
62+
5663
- name: Checkout
5764
uses: actions/checkout@v4
5865

@@ -80,6 +87,6 @@ jobs:
8087

8188
- name: Run Semantic Release
8289
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
8491
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8592
run: npx semantic-release

0 commit comments

Comments
 (0)