From 40ed9821b5174d87d5f4b987f26e9ca12608591a Mon Sep 17 00:00:00 2001 From: Fawad Ali Date: Mon, 13 May 2024 14:11:20 +0200 Subject: [PATCH] Add git config and build script to publish action --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 883885d..28c0d8b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,6 +29,15 @@ jobs: version: latest run_install: true - - run: pnpm release --increment prepatch + - name: Setup Git + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + + - name: Build + run: pnpm build + + - name: Publish Package + run: pnpm release --increment prepatch env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}