From 89cfd67c36e8ea1b81a40f417071677084613c3f Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Fri, 22 Apr 2022 20:31:41 +0200 Subject: [PATCH] Improve release publication job We update the configuration to improve the job. --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5439886..9d4c76a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,10 +52,10 @@ jobs: # the one stored in package.json. - name: Publish release package if: github.event_name == 'release' - run: yarn publish --non-interactive --message "Release v%s [skip ci]" --tag "latest" + run: yarn publish --non-interactive --message "Release v%s [skip ci]" --tag "latest" --no-git-tag-version env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Push git commit - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.event_name == 'release' run: git push