From 905709c452be872f401f9ae6661d5a46ce5e8a94 Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Wed, 10 Aug 2022 05:27:45 +0900 Subject: [PATCH] npm release flow (GitHub Actions) (2) - fix `npm version from-git` --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b00c97a9..31e10194 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,11 @@ jobs: - name: update version if: github.event_name == 'release' run: | + git config user.email "dummy@dummy" + git config user.name "dummy" npm version from-git --allow-same-version + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm pack