From e602cc03056068714cc16b84580eb171e0f47b35 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 15 Feb 2022 04:13:14 -0800 Subject: [PATCH] GH Action: Only publish to NPM when tagged (#3453) Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/3453 Per title. Otherwise leads to continuous errors on every commit like these: https://github.com/facebook/flipper/runs/5188689903?check_suite_focus=true Reviewed By: nikoant Differential Revision: D34216898 fbshipit-source-id: 686abdca5e70bee62917bcb8db265dcea5fcbb98 --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7804e6e1..747fc3e9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -216,6 +216,7 @@ jobs: - name: Set up npm token run: echo "//registry.yarnpkg.com/:_authToken=${{ secrets.FLIPPER_NPM_TOKEN }}" >> ~/.npmrc - name: Publish flipper-server on NPM + if: ${{ needs.release.outputs.tag != '' }} run: | tar zxvf flipper-server.tgz/flipper-server.tgz cd package