Skip to content

Commit 6346f7c

Browse files
committed
fix: codecov upgrade
1 parent 14370f3 commit 6346f7c

File tree

3 files changed

+36
-30
lines changed

3 files changed

+36
-30
lines changed

.github/workflows/betapublish.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
name: Pre-Release
22
on:
3-
release:
4-
types: [prereleased]
3+
release:
4+
types: [prereleased]
55
jobs:
6-
Publish:
7-
runs-on: ubuntu-latest
8-
permissions:
9-
contents: read
10-
packages: write
11-
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
14-
with:
15-
node-version: '12.x'
16-
registry-url: 'https://registry.npmjs.org'
17-
- name: Install
18-
run: npm install
19-
- name: Test
20-
run: npm run test
21-
- uses: codecov/codecov-action@v4
22-
with:
23-
files: coverage/*.json
24-
flags: unittests
25-
name: react-carousel-codecov
26-
fail_ci_if_error: true
27-
verbose: true
28-
- name: Build
29-
run: npm run build
30-
- name: Publish
31-
run: npm publish --access=public --tag beta
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6+
Publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: '12.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Install
18+
run: npm install
19+
- name: Test
20+
run: npm run test
21+
- uses: codecov/codecov-action@v4
22+
env:
23+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
24+
with:
25+
files: coverage/*.json
26+
flags: unittests
27+
name: react-carousel-codecov
28+
fail_ci_if_error: true
29+
verbose: true
30+
- name: Build
31+
run: npm run build
32+
- name: Publish
33+
run: npm publish --access=public --tag beta
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/prchecks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- name: Test
2424
run: npm run test
2525
- uses: codecov/codecov-action@v4
26+
env:
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2628
with:
2729
files: coverage/*.json
2830
flags: unittests

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- name: Test
2020
run: npm run test
2121
- uses: codecov/codecov-action@v4
22+
env:
23+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2224
with:
2325
files: coverage/*.json
2426
flags: unittests

0 commit comments

Comments
 (0)