Skip to content

Commit 8bba78e

Browse files
ci: adding octo-sts as commit author (#80)
* ci: fixing npm release job * ci: updated sem-rel npm config * ci: added octo-sts as commit author * ci: formatting
1 parent d40647c commit 8bba78e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,18 @@ jobs:
5252
- name: Build the project
5353
run: yarn rollup
5454

55+
- name: Get GitHub App User ID
56+
id: get-user-id
57+
run: echo "user-id=$(gh api "/users/octo-sts[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
58+
env:
59+
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
60+
5561
- name: Bump and Release
5662
env:
5763
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
5864
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
GIT_AUTHOR_NAME: octo-sts[bot]
66+
GIT_AUTHOR_EMAIL: ${{ steps.get-user-id.outputs.user-id }}+octo-sts[bot]@users.noreply.github.com
67+
GIT_COMMITTER_NAME: octo-sts[bot]
68+
GIT_COMMITTER_EMAIL: ${{ steps.get-user-id.outputs.user-id }}+octo-sts[bot]@users.noreply.github.com
5969
run: npx semantic-release

0 commit comments

Comments
 (0)