Skip to content

Commit 319c2a2

Browse files
authored
[Docs builds] Move node options to package.json for viz + standardize (#26181)
* [Docs builds] Move node options to package.json for viz + standardization * Apply suggestion from @kodster28 * Clean up node options from gha
1 parent b66b61c commit 319c2a2

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

.github/workflows/anchor-link-audit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- run: npm run build
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NODE_OPTIONS: "--max-old-space-size=4192"
4342

4443
- name: Install dependencies
4544
run: curl https://htmltest.wjdp.uk | bash

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
- run: npm run build
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
NODE_OPTIONS: "--max-old-space-size=6144"
6968
RUN_LINK_CHECK: true
7069

7170
- run: npm run check:worker

.github/workflows/publish-preview.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
name: Build
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
NODE_OPTIONS: --max-old-space-size=6144
3736
- name: Deploy to Cloudflare Workers
3837
env:
3938
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

.github/workflows/publish-production.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
name: Build
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
NODE_OPTIONS: --max-old-space-size=6144
3231
- run: npx wrangler deploy
3332
name: Deploy to Cloudflare Workers
3433
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"astro": "npx astro",
7-
"build": "npx astro build",
7+
"build": "export NODE_OPTIONS='--max-old-space-size=6192' || set NODE_OPTIONS='--max-old-space-size=6192'&& npx astro build",
88
"typegen:worker": "npx wrangler types ./worker/worker-configuration.d.ts",
99
"check": "npm run check:astro && npm run check:worker",
1010
"check:astro": "npx astro check",

0 commit comments

Comments
 (0)