Skip to content

Commit e819b64

Browse files
committed
chore: git identity in release
1 parent e125de7 commit e819b64

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ jobs:
2222
- run: npm ci
2323
- name: Build
2424
run: npx nx run-many --target=build --parallel=3
25-
- name: Create Version
25+
- name: Git Identity
2626
run: |
27-
git config user.name "${{ github.actor }}"
28-
git config user.email "${{ github.actor}}@users.noreply.github.com"
29-
npx lerna version --no-private --conventional-commits --yes
27+
git config --global user.name 'github-actions[bot]'
28+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
29+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
- name: Create Version
33+
run: npx lerna version --no-private --conventional-commits --yes
3034
env:
3135
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
3236
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)