From 9ba1c24ffa0be14b64e6f646c6df6177a862a02f Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Tue, 15 Oct 2024 11:21:24 -0400 Subject: [PATCH] Fix CI jobs (#17546) --- .github/workflows/anchor-link-audit.yml | 2 +- .github/workflows/publish-preview.yml | 5 +++-- .github/workflows/publish-production.yml | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/anchor-link-audit.yml b/.github/workflows/anchor-link-audit.yml index f9fd36ddcfdffa..11620d5e81c3cc 100644 --- a/.github/workflows/anchor-link-audit.yml +++ b/.github/workflows/anchor-link-audit.yml @@ -36,7 +36,7 @@ jobs: - run: npm ci - - run: npx astro build + - run: npm run build env: NODE_OPTIONS: "--max-old-space-size=4192" diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 405fce150c642d..07d872d560300d 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -25,7 +25,8 @@ jobs: path: | node_modules/.astro key: static - - run: npx astro build + - run: npm run build + name: Build env: NODE_OPTIONS: --max-old-space-size=4096 - run: npx wrangler pages deploy --project-name cloudflare-docs dist @@ -33,7 +34,7 @@ jobs: env: CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - - run: npm run build:worker && npx wrangler versions upload -c ./wrangler-workers.toml + - run: npx wrangler versions upload -c ./wrangler-workers.toml name: Deploy to Cloudflare Workers env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/.github/workflows/publish-production.yml b/.github/workflows/publish-production.yml index c22b3c3f211dc4..e40e382f8565b8 100644 --- a/.github/workflows/publish-production.yml +++ b/.github/workflows/publish-production.yml @@ -21,7 +21,8 @@ jobs: path: | node_modules/.astro key: static - - run: npx astro build + - run: npm run build + name: Build env: NODE_OPTIONS: --max-old-space-size=4096 - run: npx wrangler pages deploy --project-name cloudflare-docs dist