From 037394d09c1b52db556ab7cfde9e5eefc84b7e21 Mon Sep 17 00:00:00 2001 From: Philipp Petzold Date: Thu, 2 May 2024 19:47:26 +0200 Subject: [PATCH] ci: run codecov once --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5763dfa..b28cdb0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,9 +43,10 @@ jobs: - run: DB=postgres npm run test - run: npm run test:cov - - run: bash <(curl -s https://codecov.io/bash) + if: github.event_name == 'push' && matrix.node-version == '20.x' + - run: 'bash <(curl -s https://codecov.io/bash)' - name: Semantic Release - if: github.event_name == 'push' && matrix.node-version == '18.x' + if: github.event_name == 'push' && matrix.node-version == '20.x' uses: cycjimmy/semantic-release-action@v3 env: GH_TOKEN: ${{ secrets.GH_TOKEN }}