From 2025a88c4eddd2af17c6f51a7e82daefd14a92c6 Mon Sep 17 00:00:00 2001 From: Leszek Manicki Date: Mon, 30 Sep 2019 16:17:14 +0200 Subject: [PATCH] Conditional filtering in Publish step, instead of separate Tag step Inspired by https://github.com/actions/migrate/issues/42 and https://github.com/TypeStrong/ts-loader/pull/1018 mentioned there. --- .github/workflows/push.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3cd398c..dffd70e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,11 +14,8 @@ jobs: uses: actions/npm@master with: args: test - - name: Tag - uses: actions/bin/filter@master - with: - args: tag - name: Publish + if: github.event_name == 'release' && github.event.action == 'created' uses: actions/npm@master env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}