Skip to content

Commit ea9fc0d

Browse files
authored
Merge pull request #845 from CorrelAid/new_build_method
do not build again on vercel
2 parents 2355f6c + 48bce70 commit ea9fc0d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/cd.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,19 @@ jobs:
3333
- name: Install Playwright Browsers
3434
run: npx playwright install --with-deps
3535

36-
- name: Run tests on static build
36+
- name: Build website
3737
env:
3838
PUBLIC_API_URL: https://cms.correlaid.org
3939
PUBLIC_PRERENDER: ALL
4040
PUBLIC_ADAPTER: STATIC
4141
PUBLIC_PREVIEW: FALSE
4242
PUBLIC_ON_CMS_ERROR: FAIL
4343
DIRECTUS_TOKEN: ${{ secrets.DIRECTUS_TOKEN }}
44-
run: npm run build-and-test
44+
BUILD_DIR: 'build/'
45+
run: npm run build
46+
47+
- name: Run tests on static build
48+
run: npm run e2e
4549

4650
- uses: actions/upload-artifact@v4
4751
if: always()
@@ -53,6 +57,7 @@ jobs:
5357
- name: Deploy to Vercel
5458
uses: amondnet/vercel-action@v20
5559
with:
60+
scope: ${{ secrets.ORG_ID }}
5661
vercel-token: ${{ secrets.VERCEL_TOKEN }}
5762
vercel-org-id: ${{ secrets.ORG_ID }}
5863
vercel-project-id: ${{ secrets.PROJECT_ID }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ vite.config.ts.timestamp-*
1313
/playwright/.cache/
1414
tests-examples
1515
*.local
16-
/chrome
16+
/chrome
17+
.vercel

0 commit comments

Comments
 (0)