From f380ad3a6bea4030bab1af25eb0bdbe2aae0e0b9 Mon Sep 17 00:00:00 2001 From: Fawad Ali Date: Mon, 9 Sep 2024 22:55:37 +0200 Subject: [PATCH] Be able to push to GitHub from publish action --- .github/workflows/publish.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7d53db9..365c8ce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,9 @@ jobs: publish-package: runs-on: ubuntu-latest + permissions: + contents: write + steps: - uses: actions/checkout@v4 @@ -41,6 +44,13 @@ jobs: version: latest run_install: true + - name: Setup git + run: | + # git config user.name "${GITHUB_ACTOR}" + # git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config user.name "Fawad Ali" + git config user.email "m.fawaadali98@gmail.com" + - name: Build package run: pnpm build