Skip to content

Commit 2f572c7

Browse files
authored
Move source-modifying scripts out of prebuild to avoid unintentionally running them locally (#911)
* Move source-modifying scripts out of prebuild to avoid unintentionally running them locally * Fix broken image paths
1 parent b26a993 commit 2f572c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+441
-434
lines changed

.github/workflows/website-integrity.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
website-check:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Cancel Previous Runs
12+
- name: Cancel previous runs
1313
uses: styfle/[email protected]
1414
with:
1515
access_token: ${{ github.token }}
@@ -23,7 +23,16 @@ jobs:
2323
- name: Set up env
2424
uses: the-guild-org/shared-config/setup@v1
2525

26-
- name: Build Site
26+
- name: Fetch remote docs
27+
run: cd website && pnpm fetch-remote-docs
28+
29+
- name: Fetch API reference
30+
run: cd website && pnpm fetch-api-reference
31+
32+
- name: Fix pages structure
33+
run: cd website && pnpm fix-pages-structure
34+
35+
- name: Build
2736
run: pnpm build
2837

2938
- name: Compare

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ WORKDIR /app
1818
COPY . ./
1919

2020
RUN pnpm install --frozen-lockfile
21+
RUN cd website && pnpm fetch-remote-docs
22+
RUN cd website && pnpm fetch-api-reference
23+
RUN cd website && pnpm fix-pages-structure
2124
RUN pnpm build
2225

2326
FROM nginx:1.16.0-alpine

packages/og-image/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"dependencies": {
1313
"@resvg/resvg-wasm": "^2.6.2",
1414
"react": "^18.3.1",
15-
"satori": "^0.12.1",
15+
"satori": "^0.12.2",
1616
"yoga-wasm-web": "^0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20250321.0",
19+
"@cloudflare/workers-types": "^4.20250327.0",
2020
"@types/react": "^18.3.20",
2121
"jest-image-snapshot": "^6.4.0",
2222
"tsx": "^4.19.3",

0 commit comments

Comments
 (0)