From 4471913f59a67972b64c01a8683ac3d1f0c3f912 Mon Sep 17 00:00:00 2001 From: Henri Pietila Date: Tue, 11 Jan 2022 15:18:38 -0800 Subject: [PATCH] chore(ci) set the branch when pushing (#30) --- .github/workflows/npm-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 33b5f809a4e..6396f4db626 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -27,12 +27,11 @@ jobs: if-no-files-found: error - name: Commit files run: | - date > generated.txt git config user.name github-actions git config user.email github-actions@github.com git add . git commit -m "publish new dist 🎉 " - git push + git push origin HEAD:main publish-npm: needs: build