Skip to content

Commit 6b897f2

Browse files
gregnazarioCopilot
andcommitted
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Greg Nazario <greg@gnazar.io>
1 parent 2e0fb7e commit 6b897f2

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
permissions:
99
contents: read
10-
id-token: write
1110

1211
concurrency:
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

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)