Fix uploading of codecov bundle reports

This commit is contained in:
Quentin Gliech
2024-11-14 19:03:54 +01:00
parent 3943465e21
commit 86df1fe2d0
2 changed files with 3 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ jobs:
working-directory: ./frontend
run: npm run build
env:
UPLOAD_CODECOV_BUNDLE: "true"
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Test
working-directory: ./frontend

View File

@@ -71,12 +71,10 @@ export default defineConfig((env) => ({
tanStackRouter(),
codecovVitePlugin({
enableBundleAnalysis: process.env.UPLOAD_CODECOV_BUNDLE === "true",
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: "mas-frontend",
uploadToken: process.env.CODECOV_TOKEN,
gitService: "github",
oidc: {
useGitHubOIDC: true,
},
}),
// Custom plugin to make sure that each asset has an entry in the manifest