From e66efc00eef518e54c52a29f4d311bdb0ad920c3 Mon Sep 17 00:00:00 2001 From: Thomas Gale Date: Fri, 27 Mar 2020 23:19:36 +0000 Subject: [PATCH] fix(Using-test-release): Trying to commit and push package.json --- .github/workflows/build.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50545d0..5c2241c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,19 +26,13 @@ jobs: - name: Generate Release uses: cycjimmy/semantic-release-action@v2.1.3 id: semantic - with: - # You can specify specifying version range for the extra plugins if you prefer. - extra_plugins: | - @semantic-release/changelog@3.0.0 - @semantic-release/git env: GITHUB_TOKEN: ${{ secrets.GITHUB_PAT }} - name: Update package.json when new release published if: steps.semantic.outputs.new_release_published == 'true' run: | - echo ${{ steps.semantic.outputs.new_release_version }} - echo ${{ steps.semantic.outputs.new_release_major_version }} - echo ${{ steps.semantic.outputs.new_release_minor_version }} - echo ${{ steps.semantic.outputs.new_release_patch_version }} - cat package.json + git config --global user.name ${{ secrets.GIT_USER_NAME }} + git config --global user.email ${{ secrets.GIT_USER_EMAIL }} + git commit -am "package.json updated by semantic-release" + git push