From 8752be6ecc6389077f8be0323187b78b59ae4ac0 Mon Sep 17 00:00:00 2001 From: kgricour Date: Wed, 9 Aug 2023 16:05:34 +0200 Subject: [PATCH] fix publish.yml --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 067d816..a6f7d36 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,10 +22,12 @@ jobs: - name: Install dependencies using Yarn run: yarn install - - name: Add Author identity + - name: Commit changes to yarn.lock if any run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" + git add yarn.lock + git commit -m "Update yarn.lock" || echo "No changes to commit" - name: Check for uncommitted changes run: | @@ -34,6 +36,10 @@ jobs: - name: Update version run: npm version patch + - name: Push updated version and yarn.lock + run: | + git push origin main + - name: Build lib run: npm run build