diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3aac4ef..72cadb3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -37,6 +37,8 @@ jobs: - name: Upload coverage to Codecov # Docs: https://github.com/marketplace/actions/codecov uses: codecov/codecov-action@v4 + if: ${{ env.CODECOV_TOKEN != '' }} + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }}