From ec0361e27f418543c90dd9d86b3bafb39e13f11d Mon Sep 17 00:00:00 2001 From: Maksim Kotelnikov Date: Tue, 1 Jun 2021 12:07:36 +0200 Subject: [PATCH] chore(ci): fix condition for npm publishing --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1451a99..093c8cf 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -30,6 +30,6 @@ jobs: run: npm test - run: npm run build - run: npm publish - if: ${{ github.event.release.tag_name }} != '' + if: github.event_name == 'release' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}