File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 - run : pnpm lint
4040 - run : pnpm test
4141 - run : pnpm build
42+ env :
43+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
4244
4345 - name : Upload coverage reports to Codecov
4446 uses : codecov/codecov-action@v5
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import typescript from "@rollup/plugin-typescript";
22import babel from "@rollup/plugin-babel" ;
33import terser from "@rollup/plugin-terser" ;
44import size from "rollup-plugin-size" ;
5+ import { codecovRollupPlugin } from "@codecov/rollup-plugin" ;
6+ import process from "node:process" ;
57
68export default {
79 input : "src/index.tsx" ,
@@ -39,6 +41,12 @@ export default {
3941 "@babel/preset-typescript" ,
4042 ] ,
4143 } ) ,
44+ codecovRollupPlugin ( {
45+ enableBundleAnalysis : process . env . CODECOV_TOKEN !== undefined ,
46+ bundleName : "react-linkify-it-legacy" ,
47+ uploadToken : process . env . CODECOV_TOKEN ,
48+ telemetry : false ,
49+ } ) ,
4250 ] ,
4351 external : [ "react" ] ,
4452} ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default {
2424 enableBundleAnalysis : process . env . CODECOV_TOKEN !== undefined ,
2525 bundleName : "react-linkify-it" ,
2626 uploadToken : process . env . CODECOV_TOKEN ,
27+ telemetry : false ,
2728 } ) ,
2829 ] ,
2930 external : [ "react" ] ,
You can’t perform that action at this time.
0 commit comments