Skip to content

Commit a7be3ab

Browse files
committed
Fix uploading of codecov bundle reports
1 parent 09b37ef commit a7be3ab

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
working-directory: ./frontend
6868
run: npm run build
6969
env:
70-
UPLOAD_CODECOV_BUNDLE: "true"
70+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7171

7272
- name: Test
7373
working-directory: ./frontend

frontend/vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ export default defineConfig((env) => ({
7171
tanStackRouter(),
7272

7373
codecovVitePlugin({
74-
enableBundleAnalysis: process.env.UPLOAD_CODECOV_BUNDLE === "true",
74+
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
7575
bundleName: "mas-frontend",
76+
uploadToken: process.env.CODECOV_TOKEN,
7677
gitService: "github",
77-
oidc: {
78-
useGitHubOIDC: true,
79-
},
8078
}),
8179

8280
// Custom plugin to make sure that each asset has an entry in the manifest

0 commit comments

Comments
 (0)