From 700fe70c52fc833718c9ae148da4a4897a0a7f5a Mon Sep 17 00:00:00 2001 From: Vratislav Kalenda Date: Sat, 20 Jun 2020 14:52:08 +0200 Subject: [PATCH] fix: publishing --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35d5101..6c3a8bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,12 +26,13 @@ jobs: run: yarn test - name: Build run: yarn build - - name: Publish Info + - name: Publish Git preparation run: | echo Publishing as version ${GITHUB_REF##*/v} - # This is to silence the GIT gods. Yarn cannot publish without a version bump (that would invoke git with empty credentials) + # This is to appease the GIT gods. Yarn cannot publish without a version bump (that would invoke git with empty credentials) git config --global user.email "foo@bar.com" git config --global user.name "Foo Bar" + git tag -d ${GITHUB_REF##*/} - name: Publish run: yarn publish --new-version ${GITHUB_REF##*/v} --verbose env: