Skip to content

Commit ee92c48

Browse files
committed
ci: fix codecov env not accessible
1 parent 6865259 commit ee92c48

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
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

rollup-legacy.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import typescript from "@rollup/plugin-typescript";
22
import babel from "@rollup/plugin-babel";
33
import terser from "@rollup/plugin-terser";
44
import size from "rollup-plugin-size";
5+
import { codecovRollupPlugin } from "@codecov/rollup-plugin";
6+
import process from "node:process";
57

68
export 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
};

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"],

0 commit comments

Comments
 (0)