File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88permissions :
99 contents : read
10- id-token : write
1110
1211concurrency :
1312 group : ${{ github.workflow }}-${{ github.ref }}
@@ -25,12 +24,19 @@ jobs:
2524 - uses : ./.github/actions/prepare-runner
2625 - run : cp .env.example .env
2726 - name : Build (captures log for link check)
27+ if : ${{ secrets.CODECOV_TOKEN != '' }}
2828 shell : bash
2929 env :
3030 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
3131 run : |
3232 set -o pipefail
3333 pnpm build 2>&1 | tee build.log
34+ - name : Build (captures log for link check)
35+ if : ${{ secrets.CODECOV_TOKEN == '' }}
36+ shell : bash
37+ run : |
38+ set -o pipefail
39+ pnpm build 2>&1 | tee build.log
3440 - name : Report broken links (warn-only)
3541 if : always()
3642 run : node scripts/report-broken-links.mjs build.log
Original file line number Diff line number Diff line change @@ -338,9 +338,9 @@ export default defineConfig({
338338 plugins : [
339339 tailwindcss ( ) ,
340340 codecovVitePlugin ( {
341- enableBundleAnalysis : process . env . CODECOV_TOKEN !== undefined ,
341+ enableBundleAnalysis : Boolean ( process . env . CODECOV_TOKEN ) ,
342342 bundleName : "aptos-docs" ,
343- uploadToken : process . env . CODECOV_TOKEN ,
343+ uploadToken : process . env . CODECOV_TOKEN || undefined ,
344344 } ) ,
345345 ] ,
346346 optimizeDeps : {
You can’t perform that action at this time.
0 commit comments