From 33c20470d9b5d55139d312d0a59446e1708b0dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Teles?= Date: Fri, 17 May 2024 22:33:43 -0300 Subject: [PATCH] chore: Update GitHub Actions workflow for releasing and publishing package --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3788972..2ebb5fc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,11 @@ jobs: npm version patch -m "Bump version to %s [skip ci]" echo ::set-output name=VERSION::$(node -p "require('./package.json').version") - name: Push changes - run: git push --follow-tags + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git remote set-url origin https://${{ secrets.GH_PAT }}@github.com/holly-sheets/holly-sheets.git + git push --follow-tags env: GH_PAT: ${{ secrets.GH_PAT }} - name: Create Release