Skip to content

Commit 3a3f8eb

Browse files
committed
build: Update codecov and use token
Update codecov to the latest version and start using the org-wide token for uploads. See openedx/wg-frontend#179
1 parent 1e2bcec commit 3a3f8eb

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ jobs:
4444
git switch -c "actual-branch-not-detached-head"
4545
npx lerna@6 version --allow-branch actual-branch-not-detached-head --no-git-tag-version --no-changelog --no-push --yes
4646
- name: Coverage Report
47-
uses: codecov/codecov-action@v3
47+
uses: codecov/codecov-action@v4
48+
with:
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
fail_ci_if_error: true

.github/workflows/publish-from-package.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ jobs:
3535
- name: Test
3636
run: npm run test
3737
- name: Coverage Report
38-
uses: codecov/codecov-action@v3
38+
uses: codecov/codecov-action@v4
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
fail_ci_if_error: false
3942
- name: Publish to NPM from package.json versions
4043
run: npx lerna@6 publish from-package --yes
4144
env:

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ jobs:
3737
- name: Test
3838
run: npm run test
3939
- name: Coverage Report
40-
uses: codecov/codecov-action@v3
40+
uses: codecov/codecov-action@v4
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
fail_ci_if_error: false
4144
- name: Update automation/lerna/version branch
4245
run: |
4346
git switch -C automation/lerna/version

0 commit comments

Comments
 (0)