Skip to content

Commit 9ba302f

Browse files
committed
Fix GH Actions
1 parent d391e33 commit 9ba302f

1 file changed

Lines changed: 27 additions & 16 deletions

File tree

.github/workflows/link-and-build.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@ jobs:
1414
lint_and_build:
1515
runs-on: ubuntu-latest
1616

17-
env:
18-
NEXT_PUBLIC_STACK_URL: http://localhost:8101
19-
NEXT_PUBLIC_STACK_PROJECT_ID: internal
20-
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY: internal-project-publishable-client-key
21-
STACK_SECRET_SERVER_KEY: internal-project-secret-server-key
22-
STACK_SERVER_SECRET: 23-wuNpik0gIW4mruTz25rbIvhuuvZFrLOLtL7J4tyo
23-
24-
STACK_EMAIL_HOST: 127.0.0.1
25-
STACK_EMAIL_PORT: 2500
26-
STACK_EMAIL_USERNAME: test
27-
STACK_EMAIL_PASSWORD: none
28-
STACK_EMAIL_SENDER: noreply@test.com
29-
30-
STACK_DATABASE_CONNECTION_STRING: postgres://postgres:password@localhost:5432/stackframe
31-
STACK_DIRECT_DATABASE_CONNECTION_STRING: postgres://postgres:password@localhost:5432/stackframe
32-
3317
strategy:
3418
matrix:
3519
node-version: [18.x, 20.x]
@@ -50,6 +34,33 @@ jobs:
5034
- name: Install dependencies
5135
run: pnpm install --frozen-lockfile
5236

37+
- name: Create .env.production.local file for apps/backend
38+
run: cp apps/backend/.env.development apps/backend/.env.test.local
39+
40+
- name: Create .env.production.local file for apps/dashboard
41+
run: cp apps/dashboard/.env.development apps/dashboard/.env.test.local
42+
43+
- name: Create .env.production.local file for apps/e2e
44+
run: cp apps/e2e/.env.development apps/e2e/.env.test.local
45+
46+
- name: Create .env.production.local file for examples/cjs-test
47+
run: cp examples/cjs-test/.env.development examples/cjs-test/.env.test.local
48+
49+
- name: Create .env.production.local file for examples/demo
50+
run: cp examples/demo/.env.development examples/demo/.env.test.local
51+
52+
- name: Create .env.production.local file for examples/docs-examples
53+
run: cp examples/docs-examples/.env.development examples/docs-examples/.env.test.local
54+
55+
- name: Create .env.production.local file for examples/e-commerce
56+
run: cp examples/e-commerce/.env.development examples/e-commerce/.env.test.local
57+
58+
- name: Create .env.production.local file for examples/middleware
59+
run: cp examples/middleware/.env.development examples/middleware/.env.test.local
60+
61+
- name: Create .env.production.local file for examples/partial-prerendering
62+
run: cp examples/partial-prerendering/.env.development examples/partial-prerendering/.env.test.local
63+
5364
- name: Build
5465
run: pnpm build
5566

0 commit comments

Comments
 (0)