From 29ce65fa443a431dbfa40f08c4f781033decae26 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 10 Jul 2020 12:03:03 +0800 Subject: [PATCH] chore: add publish author --- .github/workflows/npm-publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 556e4ae42..19fc2809e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,7 +15,10 @@ jobs: with: node-version: '12' - name: Release - run: npx version-from-git --allow-same-version --template 'master.short' + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + npx version-from-git --allow-same-version --template 'master.short' - name: Publish to npmjs run: npm publish env: