Skip to content

Commit 116e6a8

Browse files
authored
Merge pull request #5 from johelder/adjust/git-auth-on-ci
ci: configure git user and add environment variables for release
2 parents 5aef9cc + ccee4f3 commit 116e6a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,18 @@ jobs:
5959
- name: Setup
6060
uses: ./.github/actions/setup
6161

62+
- name: Initialize Git user
63+
run: |
64+
git config --global user.name "Release Workflow"
65+
git config --global user.email "${{ secrets.GIT_EMAIL }}"
66+
6267
- name: Initialize the NPM config
6368
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
6469
env:
6570
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6671

6772
- name: Deploy package to NPM
6873
run: yarn release --ci
74+
env:
75+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
76+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)