Skip to content

Commit ccee4f3

Browse files
committed
ci: configure git user and add environment variables for release
- add step to initialize git user with name and email - include NPM_TOKEN and GH_TOKEN as environment variables for release step
1 parent 5aef9cc commit ccee4f3

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)