Skip to content

Commit a692cfb

Browse files
committed
fix: use proper node --run args
1 parent 4b4b4a2 commit a692cfb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494

9595
- name: Build Next.js (ISR)
9696
# We want a ISR build on CI to ensure that regular Next.js builds work as expected.
97-
run: npx turbo build ${{ env.TURBO_ARGS }}
97+
run: node --run build -- ${{ env.TURBO_ARGS }}
9898
env:
9999
# We want to ensure we have enough RAM allocated to the Node.js process
100100
# this should be a last resort in case by any chances the build memory gets too high
@@ -107,7 +107,7 @@ jobs:
107107
# We only run full static builds within Pull Requests. This step is also used to export
108108
# static output in all languages, and it only works on `push` events.
109109
if: github.event_name == 'push'
110-
run: npx turbo deploy ${{ env.TURBO_ARGS }}
110+
run: node --run deploy -- ${{ env.TURBO_ARGS }}
111111
env:
112112
# We want to ensure we have enough RAM allocated to the Node.js process
113113
# this should be a last resort in case by any chances the build memory gets too high
@@ -126,7 +126,7 @@ jobs:
126126
if: |
127127
(github.event_name == 'pull_request_target' &&
128128
github.event.pull_request.head.ref != 'chore/crowdin')
129-
run: npx turbo deploy ${{ env.TURBO_ARGS }}
129+
run: node --run deploy -- ${{ env.TURBO_ARGS }}
130130
env:
131131
# We want to ensure we have enough RAM allocated to the Node.js process
132132
# this should be a last resort in case by any chances the build memory gets too high

apps/site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"lint:types": "tsc --noEmit",
2020
"playwright": "playwright test",
2121
"prebuild": "node --run build:blog-data",
22+
"predeploy": "node --run build:blog-data",
2223
"scripts:release-post": "cross-env NODE_NO_WARNINGS=1 node scripts/release-post/index.mjs",
2324
"serve": "node --run dev",
2425
"start": "cross-env NODE_NO_WARNINGS=1 next start",

0 commit comments

Comments
 (0)