Skip to content

Commit f9b57e1

Browse files
authored
fix: use actor identity for release tags and add --force flag (#52)
- Configure git to use the workflow actor's identity for better attribution and audit trail (shows who triggered the release) - Add --force flag when pushing major version tag to handle cases where remote tag deletion fails but tag still exists remotely This provides better accountability by showing who created each release tag rather than attributing everything to github-actions[bot].
1 parent 428ee32 commit f9b57e1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
- name: Build
7777
run: pnpm run build
7878

79+
- name: Configure git
80+
run: |
81+
git config user.name "${{ github.actor }}"
82+
git config user.email "${{ github.actor }}@users.noreply.github.com"
83+
7984
- name: Create semver tag
8085
run: |
8186
VERSION="${{ github.event.inputs.version }}"

0 commit comments

Comments
 (0)