Skip to content

Commit df28976

Browse files
committed
feat: prefetch all projects
1 parent e7c9958 commit df28976

File tree

14 files changed

+202147
-369
lines changed

14 files changed

+202147
-369
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
test_build:
1515
name: Run Tests + Build
1616
runs-on: ubuntu-latest
17+
environment: 'prod'
18+
env:
19+
PIPELINE_TYPE: cd
1720

1821
steps:
1922
# NOTE: This uses default branch which is `main`
@@ -34,11 +37,16 @@ jobs:
3437
- name: Run yarn install
3538
run: yarn install
3639

40+
- name: Generate typings
41+
run: yarn generate:type
42+
3743
- name: Download data
3844
# NOTE: This will add env.MAPSWIPE_API_LAST_MODIFIED_EPOCH
39-
run: ./scripts/download-data.sh
45+
run: yarn fetch-data
4046
env:
4147
MAPSWIPE_API_ENDPOINT: ${{ vars.MAPSWIPE_API_ENDPOINT }}
48+
MAPSWIPE_REFERER_ENDPOINT: ${{ vars.MAPSWIPE_REFERER_ENDPOINT }}
49+
APP_ENVIRONMENT: ${{ vars.APP_ENVIRONMENT }}
4250

4351
- name: Build + Test
4452
run: yarn build
@@ -47,7 +55,6 @@ jobs:
4755
# Common
4856
NODE_OPTIONS: --max_old_space_size=4096
4957
# App ENV
50-
MAPSWIPE_COMMUNITY_API_ENDPOINT: ${{ vars.MAPSWIPE_COMMUNITY_API_ENDPOINT }}
5158
MAPSWIPE_API_ENDPOINT: ${{ vars.MAPSWIPE_API_ENDPOINT }}
5259
NEXT_PUBLIC_POSTHOG_KEY: ${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
5360
NEXT_PUBLIC_POSTHOG_HOST_API: ${{ vars.NEXT_PUBLIC_POSTHOG_HOST_API }}

codegen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ schema:
44
documents:
55
- "src/**/*.tsx"
66
- "src/**/*.ts"
7+
- "scripts/**/*.ts"
78
- "src/**/*.graphql"
89
generates:
910
./generated/types.ts:

0 commit comments

Comments
 (0)