diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a456a0a..f123f21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,10 @@ jobs: - name: Yarn bump patch if: ${{ !startsWith(github.ref, 'refs/tags/v') }} - run: echo "ref=$(yarn version --patch --json|grep -o '[0-9.]*'|tail -1)" >> "$GITHUB_ENV" + run: | + git config user.email "git.action@github.com" + git config user.name "git.action" + echo "ref=$(yarn version --patch --json|grep -o '[0-9.]*'|tail -1)" >> "$GITHUB_ENV" - name: Build @@ -41,7 +44,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag: ${{ github.ref || env.ref }} + tag: ${{ env.ref || github.ref }} # release_name: Release ${{ github.ref }} body: "Build for commit : ${{ github.event.head_commit.message || 'automatic' }}" # TODO: changelog, and build only on tag draft: false