From 3a3f8eb70da8bf2eeb7cae0151e7b42ca4beeb9c Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Thu, 13 Jun 2024 19:39:27 -0300 Subject: [PATCH] build: Update codecov and use token Update codecov to the latest version and start using the org-wide token for uploads. See https://github.com/openedx/wg-frontend/issues/179 --- .github/workflows/ci.yml | 5 ++++- .github/workflows/publish-from-package.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ca121ae..d989312b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,4 +44,7 @@ jobs: git switch -c "actual-branch-not-detached-head" npx lerna@6 version --allow-branch actual-branch-not-detached-head --no-git-tag-version --no-changelog --no-push --yes - name: Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/publish-from-package.yml b/.github/workflows/publish-from-package.yml index 3c993f78..5a051e3e 100644 --- a/.github/workflows/publish-from-package.yml +++ b/.github/workflows/publish-from-package.yml @@ -35,7 +35,10 @@ jobs: - name: Test run: npm run test - name: Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false - name: Publish to NPM from package.json versions run: npx lerna@6 publish from-package --yes env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66a38df2..c8215b37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,10 @@ jobs: - name: Test run: npm run test - name: Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false - name: Update automation/lerna/version branch run: | git switch -C automation/lerna/version