Skip to content

Commit 7cf2afb

Browse files
authored
Merge pull request #33 from pdq/fix/setup-git
#patch ci: setup git before doing npm version
2 parents 003e783 + 732aa17 commit 7cf2afb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v2
1818
with:
1919
fetch-depth: '0'
20+
token: ${{ secrets.GITHUB_TOKEN }}
2021

2122
- name: Bump version and push tag/create release point
2223
id: bump_version
@@ -28,6 +29,11 @@ jobs:
2829
# basically just using this step to grab the level to pass to `npm version`
2930
DRY_RUN: true
3031

32+
- name: Setup Git
33+
run: |
34+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
35+
git config user.name "$GITHUB_ACTOR"
36+
3137
- name: Bump package.json version
3238
run: npm version ${{ steps.bump_version.outputs.part }}
3339

0 commit comments

Comments
 (0)