Skip to content

Commit e1ceb8f

Browse files
authored
Fix codecov workflow (#4139)
1 parent 04cba88 commit e1ceb8f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
2-
on: workflow_call
2+
on:
3+
workflow_call:
4+
secrets:
5+
codecov_token:
6+
required: true
37
jobs:
48
lint:
59
name: Lint source files
@@ -148,7 +152,7 @@ jobs:
148152
with:
149153
file: ./coverage/coverage-final.json
150154
fail_ci_if_error: true
151-
token: ${{ secrets.CODECOV_TOKEN }}
155+
token: ${{ secrets.codecov_token }}
152156

153157
test:
154158
name: Run tests on Node v${{ matrix.node_version_to_setup }}

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: pull_request
33
jobs:
44
ci:
55
uses: ./.github/workflows/ci.yml
6+
secrets:
7+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
68

79
diff-npm-package:
810
name: Diff content of NPM package

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: push
33
jobs:
44
ci:
55
uses: ./.github/workflows/ci.yml
6+
secrets:
7+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
68
deploy-to-npm-branch:
79
name: Deploy to `npm` branch
810
needs: ci

0 commit comments

Comments
 (0)