diff --git a/.github/workflows/anchor-link-audit.yml b/.github/workflows/anchor-link-audit.yml index f9fd36ddcfdffa1..11620d5e81c3cc5 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 405fce150c642d9..07d872d560300d4 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 c22b3c3f211dc4b..e40e382f8565b8b 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