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