diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 18929ee1d..3ba1e00cf 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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 diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 516e5478d..2d9391179 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -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