From 73cacf1ca1d58aa21354ffa0e69fb24a8ef6ba58 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Wed, 3 Apr 2024 22:16:13 -0500 Subject: [PATCH] Update main.yaml --- .github/workflows/main.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8de1b84..d5b4686 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -37,14 +37,6 @@ jobs: - name: Build run: npm run build - - if: matrix.node-version == '20.x' - name: Upload coverage to Codecov - uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1 - continue-on-error: true - with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: openfga/js-sdk - test: runs-on: ubuntu-latest @@ -71,6 +63,13 @@ jobs: - name: Run tests run: npm test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1 + continue-on-error: true + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: openfga/js-sdk + publish: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v')