Skip to content

Commit 2ef7aa3

Browse files
ci: update git env
1 parent f46cdb4 commit 2ef7aa3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ jobs:
4242
uses: codecov/codecov-action@v1
4343
with:
4444
token: ${{ secrets.CODECOV_TOKEN }}
45-
46-
- name: Release
45+
46+
- name: Setup git config
4747
run: |
48+
git config --global user.name $USER_NAME
49+
git config --global user.email $USER_EMAIL
4850
git remote set-url origin https://${GITHUB_TOKEN}@github.com/${REPOSITORY}
49-
yarn release
51+
52+
- name: Release
53+
run: yarn release
5054

5155
- name: Deploy
5256
run: |
@@ -55,6 +59,6 @@ jobs:
5559
env:
5660
USER_NAME: 'github-actions[bot]'
5761
USER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
58-
GITHUB_TOKEN: ${{ github.token }} #GITHUB_TOKEN is required
62+
GITHUB_TOKEN: ${{ github.token }} #GITHUB_TOKEN is required for `release-it`
5963
DEPLOY_ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
6064
REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)